ninja.activeproxy.path.pxset
Class AutomaticPathCreatorService
java.lang.Object
|
+--ninja.rmi.NinjaRemoteObject
|
+--ninja.ispace.iSpaceService
|
+--ninja.activeproxy.path.pxset.AutomaticPathCreatorService
- public class AutomaticPathCreatorService
- extends ninja.ispace.iSpaceService
- implements AutomaticPathCreatorServiceIF, OpNotifierIF, ninja.sds.SDSinsecureServiceIF
Fields inherited from class ninja.rmi.NinjaRemoteObject |
servref |
Method Summary |
void |
addOperator(OpInfo op)
Method used to add a new operator to the XSet search engine index |
PathDescription |
createLogicalPath(PathDescription path,
OperatorIF source,
OperatorIF dest)
|
PathDescription |
createLogicalPath(java.lang.String uniqueID1,
java.lang.String uniqueID2)
|
protected void |
destroy()
|
private java.lang.String |
FormatOpInfoXML(java.lang.String opInfoXML)
Method to Format the string received from xml into a proper validating xml |
java.lang.String |
getClassName(java.lang.String xml)
|
java.util.Vector |
getConnectors(java.util.Vector opPath,
java.lang.String srcXML)
|
byte[] |
getDescription()
This routine creates a service description for this service,
and return its byte array. |
private PathDescription |
getPathDesc(java.util.Vector opPath,
java.util.Vector connPath,
OperatorIF source,
OperatorIF dest)
|
java.lang.String |
getUniqueID(java.lang.String xml)
|
java.lang.String |
getUniqueXML(java.lang.String uniqueID,
java.lang.String type)
|
java.lang.String |
getURL(java.lang.String xml)
|
java.lang.String |
getXMLTag(java.lang.String xml,
java.lang.String start,
java.lang.String end)
|
protected void |
init(ninja.ispace.iSpaceServiceConfig config)
|
static AutomaticPathCreatorServiceIF |
loadSDSAutomaticPathCreator()
Find an instance of path instantiator on the network |
java.lang.String |
ProcessDestForInboundQuery(OperatorIF dest)
Method to process the DestIF and get a string which
can be used to find to query XSet |
java.lang.String |
ProcessSourceForOutboundQuery(OperatorIF source)
Method to process the SourceIF and get a string which
can be used to find to query XSet |
java.lang.String |
ProcessXMLForInboundConnectorQuery(java.lang.String xml)
|
java.lang.String |
ProcessXMLForInboundOperatorQuery(java.lang.String xml)
|
java.lang.String |
ProcessXMLForOutboundConnectorQuery(java.lang.String xml)
|
java.lang.String |
ProcessXMLForOutboundOperatorQuery(java.lang.String xml)
|
void |
removeOperator(OpInfo op)
Method used to remove an operator the XSet search engine index |
Methods inherited from class ninja.rmi.NinjaRemoteObject |
exportObject,
getStub,
unexportObject |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
debug
static boolean debug
DTDString
java.lang.String DTDString
apcGraph
Graph apcGraph
pxsetServer
PathXSetServiceIF pxsetServer
AUTOMATIC_PATH_CREATOR_SERVICE_NAME
private static final java.lang.String AUTOMATIC_PATH_CREATOR_SERVICE_NAME
PATH_XSET_SERVICE_NAME
private static final java.lang.String PATH_XSET_SERVICE_NAME
NOTIFIER_INTERVAL
private static final int NOTIFIER_INTERVAL
descr
protected ninja.sds.ServiceDescription descr
ourNotifier
private OpNotifier ourNotifier
AutomaticPathCreatorService
public AutomaticPathCreatorService()
throws java.rmi.RemoteException,
java.io.IOException,
PathXSetServiceNotFoundException
- Constructor: Creates Graph and PathXSetService variables.
It should actually create an instance of a Graph
and get a stub for PathXSetService
init
protected void init(ninja.ispace.iSpaceServiceConfig config)
- Overrides:
- init in class ninja.ispace.iSpaceService
getDescription
public byte[] getDescription()
- This routine creates a service description for this service,
and return its byte array.
- Specified by:
- getDescription in interface ninja.sds.SDSinsecureServiceIF
- Returns:
- Service description
destroy
protected void destroy()
- Overrides:
- destroy in class ninja.ispace.iSpaceService
addOperator
public void addOperator(OpInfo op)
throws java.rmi.RemoteException,
InvalidXMLException,
DuplicateException
- Method used to add a new operator to the XSet search engine index
- Specified by:
- addOperator in interface OpNotifierIF
- Parameters:
op
- the Opinfo of the operator to be added- Throws:
- java.rmi.RemoteException - as a remote service should
- InvalidXMLException -
- DuplicateException -
removeOperator
public void removeOperator(OpInfo op)
throws java.rmi.RemoteException,
InvalidXMLException,
NotFoundException
- Method used to remove an operator the XSet search engine index
- Specified by:
- removeOperator in interface OpNotifierIF
- Parameters:
Opinfo
- op of the operator to be added- Throws:
- java.rmi.RemoteException - as a remote service should
- InvalidXMLException -
createLogicalPath
public PathDescription createLogicalPath(PathDescription path,
OperatorIF source,
OperatorIF dest)
throws java.rmi.RemoteException,
PathCreationNotPossibleException
- Specified by:
- createLogicalPath in interface AutomaticPathCreatorServiceIF
createLogicalPath
public PathDescription createLogicalPath(java.lang.String uniqueID1,
java.lang.String uniqueID2)
throws java.rmi.RemoteException,
PathCreationNotPossibleException
- Specified by:
- createLogicalPath in interface AutomaticPathCreatorServiceIF
getConnectors
public java.util.Vector getConnectors(java.util.Vector opPath,
java.lang.String srcXML)
throws java.rmi.RemoteException,
PathCreationNotPossibleException
getPathDesc
private PathDescription getPathDesc(java.util.Vector opPath,
java.util.Vector connPath,
OperatorIF source,
OperatorIF dest)
FormatOpInfoXML
private java.lang.String FormatOpInfoXML(java.lang.String opInfoXML)
throws InvalidXMLException
- Method to Format the string received from xml into a proper validating xml
- Parameters:
OpInfo
- op received from OpServices- Returns:
- String returns the properly formatted string
- Throws:
- InvalidXMLException - if the OpInfo xml is incorrect
getUniqueXML
public java.lang.String getUniqueXML(java.lang.String uniqueID,
java.lang.String type)
throws java.rmi.RemoteException,
InvalidXMLException,
DuplicateException,
NotFoundException
getXMLTag
public java.lang.String getXMLTag(java.lang.String xml,
java.lang.String start,
java.lang.String end)
throws java.rmi.RemoteException,
InvalidXMLException
getUniqueID
public java.lang.String getUniqueID(java.lang.String xml)
throws java.rmi.RemoteException,
InvalidXMLException
getURL
public java.lang.String getURL(java.lang.String xml)
throws java.rmi.RemoteException,
InvalidXMLException
getClassName
public java.lang.String getClassName(java.lang.String xml)
throws java.rmi.RemoteException,
InvalidXMLException
ProcessSourceForOutboundQuery
public java.lang.String ProcessSourceForOutboundQuery(OperatorIF source)
throws InvalidXMLException
- Method to process the SourceIF and get a string which
can be used to find to query XSet
- Parameters:
String
- input- Returns:
- String output
- Throws:
- InvalidXMLException - invalid format
ProcessDestForInboundQuery
public java.lang.String ProcessDestForInboundQuery(OperatorIF dest)
throws InvalidXMLException
- Method to process the DestIF and get a string which
can be used to find to query XSet
- Parameters:
String
- input- Returns:
- String output
- Throws:
- InvalidXMLException - invalid format
ProcessXMLForOutboundOperatorQuery
public java.lang.String ProcessXMLForOutboundOperatorQuery(java.lang.String xml)
throws InvalidXMLException
ProcessXMLForInboundOperatorQuery
public java.lang.String ProcessXMLForInboundOperatorQuery(java.lang.String xml)
throws InvalidXMLException
ProcessXMLForOutboundConnectorQuery
public java.lang.String ProcessXMLForOutboundConnectorQuery(java.lang.String xml)
throws InvalidXMLException
ProcessXMLForInboundConnectorQuery
public java.lang.String ProcessXMLForInboundConnectorQuery(java.lang.String xml)
throws InvalidXMLException
loadSDSAutomaticPathCreator
public static AutomaticPathCreatorServiceIF loadSDSAutomaticPathCreator()
throws ninja.sds.NoSDSfound,
java.rmi.RemoteException,
java.lang.Exception
- Find an instance of path instantiator on the network