|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.activation.Activatable | +--com.kedwards.swt.ActivatableServiceBackend
ActivatableServiceBackend.java
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational purposes only.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
ActivatableServiceBackend(java.rmi.activation.ActivationID id,
java.rmi.MarshalledObject data)
|
Method Summary | |
java.lang.Object |
getAdmin()
Returns the administration object for this service. |
java.rmi.activation.ActivationID |
getID()
Makes the ActivationID accessible publically. |
net.jini.core.entry.Entry[] |
getInitialAttributes()
Returns the set of entries that will initially be associated with the service. |
java.lang.String[] |
getInitialGroups()
Returns the initial set of groups that the service will discover. |
net.jini.core.discovery.LookupLocator[] |
getInitialLocators()
Returns the initial set of locators that the service will discover. |
abstract java.lang.Object |
getProxy()
Subclasses should override to return their proxy. |
java.lang.String |
getServiceName()
Unless overridden by a subclass, this returns the de-packaged name of the class. |
ServiceWrapper |
getServiceWrapper()
Return the wrapper used to host this service, if it has been set. |
abstract void |
initialize()
Called the first time the service is run to set up init values |
abstract void |
postInitialize()
Called when the ServiceID is available |
abstract void |
preInitialize()
Called when the wrapper is available |
void |
setServiceID(net.jini.core.lookup.ServiceID serviceID)
Called to set the ID of the service. |
void |
setServiceWrapper(ServiceWrapper wrapper)
Should only be called once to set the wrapper. |
abstract void |
shutdown()
Called when the service must be terminated |
Methods inherited from class java.rmi.activation.Activatable |
exportObject, exportObject, exportObject, exportObject, inactive, register, unexportObject, unregister |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.kedwards.swt.persist.Checkpointed |
getCheckpointData, setCheckpointData |
Constructor Detail |
public ActivatableServiceBackend(java.rmi.activation.ActivationID id, java.rmi.MarshalledObject data) throws java.rmi.RemoteException
Method Detail |
public java.lang.String getServiceName()
getServiceName
in interface ServiceBackend
public java.rmi.activation.ActivationID getID()
getID
in class java.rmi.activation.Activatable
public ServiceWrapper getServiceWrapper()
getServiceWrapper
in interface ServiceBackend
public final void setServiceWrapper(ServiceWrapper wrapper)
setServiceWrapper
in interface ServiceBackend
public java.lang.Object getAdmin() throws java.rmi.RemoteException
getAdmin
in interface ServiceBackend
public abstract java.lang.Object getProxy()
getProxy
in interface ServiceBackend
com.kedwards.swt.ServiceBackend
public abstract void preInitialize() throws java.lang.Exception
preInitialize
in interface ServiceBackend
public abstract void initialize() throws java.lang.Exception
initialize
in interface ServiceBackend
public abstract void postInitialize() throws java.lang.Exception
postInitialize
in interface ServiceBackend
public abstract void shutdown()
shutdown
in interface ServiceBackend
public final void setServiceID(net.jini.core.lookup.ServiceID serviceID)
setServiceID
in interface ServiceBackend
public net.jini.core.discovery.LookupLocator[] getInitialLocators()
getInitialLocators
in interface ServiceBackend
public java.lang.String[] getInitialGroups()
getInitialGroups
in interface ServiceBackend
public net.jini.core.entry.Entry[] getInitialAttributes()
getInitialAttributes
in interface ServiceBackend
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |