ninja.activeproxy.path
Class SDSOperator
java.lang.Object
|
+--ninja.rmi.NinjaRemoteObject
|
+--ninja.ispace.iSpaceService
|
+--ninja.activeproxy.path.SDSOperator
- Direct Known Subclasses:
- Operator
- public abstract class SDSOperator
- extends ninja.ispace.iSpaceService
- implements SDSOperatorIF, ninja.sds.SDSinsecureServiceIF
SDSOperator is the base class which Operators should implement.
They're left with 3 routines to write:
GetServiceDescriptor -- Return XML description of service to store in SDS
All other methods are implemented with basic functionality as described
herein
Field Summary |
protected ninja.sds.ServiceDescription |
descr
|
protected boolean |
running
|
protected java.lang.String |
serviceName
|
protected java.lang.String |
xmlData
|
Fields inherited from class ninja.rmi.NinjaRemoteObject |
servref |
Method Summary |
protected void |
destroy()
|
byte[] |
getDescription()
This routine creates a service description for this service,
and return its byte array. |
abstract java.lang.String |
GetServiceDescriptor()
Called to allow operator to add operator specific XML to the registered
description. |
(package private) java.lang.String |
GetServiceName()
Called to find the serviceName and xml description of the service
implementors are required to provide this function. |
protected void |
init(ninja.ispace.iSpaceServiceConfig config)
The init method required by the iSpace
generate a valid insecure service descriptor based on serviceName field |
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 |
descr
protected ninja.sds.ServiceDescription descr
serviceName
protected java.lang.String serviceName
xmlData
protected java.lang.String xmlData
running
protected boolean running
SDSOperator
public SDSOperator()
throws java.rmi.RemoteException
init
protected void init(ninja.ispace.iSpaceServiceConfig config)
- The init method required by the iSpace
generate a valid insecure service descriptor based on serviceName field
- Overrides:
- init in class ninja.ispace.iSpaceService
destroy
protected void destroy()
- Overrides:
- destroy 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
GetServiceName
java.lang.String GetServiceName()
- Called to find the serviceName and xml description of the service
implementors are required to provide this function.
- Returns:
- The name of the service.
GetServiceDescriptor
public abstract java.lang.String GetServiceDescriptor()
- Called to allow operator to add operator specific XML to the registered
description.
- Returns:
- XML descriptor of service