|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.omdocjdom.lucene.LuceneMBaseXmlRpcServer
public class LuceneMBaseXmlRpcServer
This class acts as a wrapper of any given OmdocLuceneMBaseRef to serve
it through XML-RPC on the given port number. It is omptimized for OmdocLuceneMBaseRef object.
Use its peer OmdocLuceneMBaseRef to communicate with it and obtain an
MBaseRef at the other side.
| Nested Class Summary | |
|---|---|
class |
LuceneMBaseXmlRpcServer.ReloadErrorHandler
This class is made public only for the purposes of being served by XML-RPC server... |
| Field Summary | |
|---|---|
static String |
CVS_ID
Missing description of the Field |
protected static org.apache.commons.logging.Log |
log
Missing description of the Field |
static int |
NO_SUCH_ITEM_ERRCODE
The XML-RPC error code sent when an ID requested did not exist. |
| Constructor Summary | |
|---|---|
LuceneMBaseXmlRpcServer(int portNumber,
OmdocLuceneMBaseRef mbaseRef)
Missing description of constructor for the OJXMLRPClucenembaseServer object |
|
LuceneMBaseXmlRpcServer(OmdocLuceneMBaseRef mbaseRef)
A server-less version to be embedded in other servers... provides the XML-RPC type- conversion facility. |
|
LuceneMBaseXmlRpcServer(Subconfiguration config)
A constructor that reads its properties from the Manager properties and uses the Manager's MBaseRef. |
|
| Method Summary | |
|---|---|
boolean |
assertItsUp()
Relays to MBaseRef.assertItsUp(). |
protected void |
attemptShutdown(String candidatePassword)
Missing description of the Method |
MBaseRef |
close()
Closes the attached server listening to the socket. |
String |
create()
|
String |
deleteTerm(String id)
|
protected void |
finalize()
Missing description of the Method |
Collection |
generateImportIDs(String col,
String fileName)
|
String |
generateImports(String col,
String fileName)
This method makes omdoc documents compatible with the databse It resolve all references and add necessary imports statements |
String |
getAttribute(String id,
String attributeName)
|
String |
getCanonicalID(String givenID)
Calls MBaseRef.getCanonicalID(org.activemath.abstractcontent.MBaseID). |
String |
getChildren(String id,
String xPathExpr)
Invokes MBaseRef.getChildren(org.activemath.abstractcontent.MBaseID, java.lang.String), returns the result as an XML string. |
Vector |
getCollectionsProvided()
Calls MBaseRef.getStructuredListOfConcepts(java.util.Collection). |
Hashtable |
getCommonName(String id)
|
String |
getCompleteDCMetadata(String id)
|
Vector |
getDefinitions(String id)
|
Vector |
getDefinitions(String id,
Vector collections)
Missing description of the gets the definitions attribute of the OJXMLRPClucenembaseServer object |
Vector |
getDependencies(String id)
This method returns a vector (an XML-RPC array) of
dependencies. |
String |
getDocument(String id)
This method is only for debug purpose. |
String |
getFormalContent(String id)
|
Vector |
getForWhat(String id)
Missing description of the gets the forWhat attribute of the OJXMLRPClucenembaseServer object |
Vector |
getIncomingRelations(String id,
Vector collections)
|
Vector |
getItemsModifiedSince(Date date)
|
Vector |
getItemsModifiedSince(String date)
|
Date |
getLastModified(Vector ids)
|
String |
getMetadata(String id)
|
String |
getMethodNames()
Returns the attached description of the methods (FIXME: currently missing). |
Hashtable |
getOMDocPath(String givenID)
Returns the path of the OMDoc from which was loaded the element pointed at by this ID. |
Vector |
getOutgoingRelations(String id)
|
Vector |
getProofs(String id)
|
Vector |
getProofs(String id,
Vector collections)
|
Vector |
getRelated(String id)
|
Vector |
getRelated(String id,
Vector collections)
This method returns a vector (an XML-RPC array) of
dependencies. |
String |
getStructuredListOfConcepts(Vector collections)
Missing description of the gets the structuredListOfConcepts attribute of the OJXMLRPClucenembaseServer object |
String |
getTextualContent(String id)
|
String |
getTheory(String id)
|
String |
getTypeString(String id)
|
Vector |
listItems(String idString)
|
Vector |
listItems(Vector collections,
String type)
|
Vector |
listTheories(Vector collections)
|
Vector |
listTheories1(String collection)
|
static void |
main(String[] args)
|
String |
reload()
Works only with OmdocLuceneMBaseRef and invokes there the OmdocLuceneMBaseRef.reload(). |
String |
reload(String fileName)
|
String |
reloadWithErrors()
Reloads the content from the directory. |
Vector |
searchIDs(String idSubstring)
Searches for an id by substring... |
Vector |
searchText(String textToSearch)
|
Vector |
searchText(String textToSearch,
Vector collections)
Calls MBaseRef.searchText(java.lang.String, java.util.Collection). |
String |
shutdown(String key)
Shuts down using the generated password (currently deactivated) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CVS_ID
public static final int NO_SUCH_ITEM_ERRCODE
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public LuceneMBaseXmlRpcServer(Subconfiguration config)
throws MBaseException
Manager's MBaseRef.
config - Missing description of Parameter
MBaseException - Missing description of Exception
public LuceneMBaseXmlRpcServer(int portNumber,
OmdocLuceneMBaseRef mbaseRef)
throws MBaseException
portNumber - Missing description of ParametermbaseRef - Missing description of Parameter
MBaseException - Missing description of Exceptionpublic LuceneMBaseXmlRpcServer(OmdocLuceneMBaseRef mbaseRef)
mbaseRef - the mbase that's to be wrapped.| Method Detail |
|---|
public Vector getDependencies(String id)
throws Exception
array) of
dependencies. Dependency objects are simple records with the following
keys:
getDependencies(java.lang.String), the "of" value
is the id requested and for getRelated(java.lang.String, java.util.Vector), the "on" value is the id
requested.
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getRelated(String id,
Vector collections)
throws Exception
array) of
dependencies. Dependency objects are simple records with the following
keys:
getDependencies(java.lang.String), the "of" value
is the id requested and for getRelated(java.lang.String, java.util.Vector), the "on" value is the id
requested.
id - Missing description of Parametercollections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getRelated(String id)
throws Exception
Exception
public Vector getForWhat(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getDefinitions(String id,
Vector collections)
throws Exception
id - Missing description of Parametercollections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getDefinitions(String id)
throws Exception
Exception
public Vector getProofs(String id,
Vector collections)
throws Exception
Exception
public Vector getProofs(String id)
throws Exception
Exception
public String getTypeString(String id)
throws Exception
Exception
public String getTheory(String id)
throws Exception
Exception
public String getDocument(String id)
throws Exception
id -
Exception
public Hashtable getCommonName(String id)
throws Exception
Exception
public String getMetadata(String id)
throws Exception
Exception
public String getCompleteDCMetadata(String id)
throws Exception
Exception
public String getTextualContent(String id)
throws Exception
Exception
public String getFormalContent(String id)
throws Exception
Exception
public String getAttribute(String id,
String attributeName)
throws Exception
Exception
public String getChildren(String id,
String xPathExpr)
throws Exception
MBaseRef.getChildren(org.activemath.abstractcontent.MBaseID, java.lang.String), returns the result as an XML string.
Exceptionpublic String getMethodNames()
public Vector listItems(String idString)
throws Exception
Exception
public Vector listTheories(Vector collections)
throws Exception
Exception
public Vector listItems(Vector collections,
String type)
throws Exception
Exception
public Vector listTheories1(String collection)
throws Exception
Exception
public String getStructuredListOfConcepts(Vector collections)
throws Exception
collections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getCollectionsProvided()
throws Exception
MBaseRef.getStructuredListOfConcepts(java.util.Collection).
MBaseException - if anything happens.
Exception
public String getCanonicalID(String givenID)
throws Exception
MBaseRef.getCanonicalID(org.activemath.abstractcontent.MBaseID).
givenID - A string with, at least, the ID name
MBaseItemNotFoundException - If there is no such ID.
Exception - If anything happens
public Vector searchText(String textToSearch,
Vector collections)
throws Exception
MBaseRef.searchText(java.lang.String, java.util.Collection).
textToSearch - collections - The collections to search through
Exception - If anything happens.
public Vector searchText(String textToSearch)
throws Exception
Exception
public boolean assertItsUp()
throws Exception
MBaseRef.assertItsUp().
MBaseException - Missing description of Exception
Exception
public String shutdown(String key)
throws Exception
key - The password
Exception - if anything
public String reload()
throws Exception
OmdocLuceneMBaseRef and invokes there the OmdocLuceneMBaseRef.reload().
Exception - Only if the underlying LuceneBuilder is configured to do so.
public String reload(String fileName)
throws Exception
Exception
public String create()
throws Exception
Exception
public String reloadWithErrors()
throws Exception
OmdocLuceneMBaseRef.
nextError
which is a record of keys systemId (the file-name, relative
to the basePath), message, exceptionClass, lineNumber, and columnNumber
Or a string saying finished
Exception
public String generateImports(String col,
String fileName)
throws Exception
col - a String value. The name of the
collection.fileName - It is a absoulte path of the omdoc fileName
Exception - Description of the Exception
public Collection generateImportIDs(String col,
String fileName)
throws Exception
Exception
public Vector searchIDs(String idSubstring)
throws Exception
idSubstring - The substring to search (may be empty to get a compelte list)
Exception
public String deleteTerm(String id)
throws Exception
Exceptionpublic MBaseRef close()
protected void attemptShutdown(String candidatePassword)
candidatePassword - Missing description of Parameterprotected void finalize()
finalize in class Object
public Hashtable getOMDocPath(String givenID)
throws Exception
givenID - The ID to be found
path, the path relative to the basePath.lineNumber the line-number in the filecolumnNumber the column-number in the fileMBaseItemNotFoundException - if the ID is not found
Exception - If anything happens,
public Date getLastModified(Vector ids)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public Vector getItemsModifiedSince(String date)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public Vector getItemsModifiedSince(Date date)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public Vector getIncomingRelations(String id,
Vector collections)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public Vector getOutgoingRelations(String id)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||