|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The "public" interface for Servers; note that the Server instance type will vary directly with the ServerManager used, in order to best support the location transparency concept. IServer serves as the Proxy to the Service instances loaded into the ServerManager; any control of the Services must come through the Server, since the client, if it tries to hold a Service instance within its own JVM for "faster" access, may be holding a stale or otherwise unstable reference.
Method Summary | |
ConfigProperties |
getConfigInfo()
Returns the Properties instance to use for configuration |
java.lang.String |
getInstanceID()
Returns the instance ID of the wrapped Service. |
java.lang.Exception |
getLastError()
Returns the last Exception thrown, if any, by the wrapped Service. |
java.lang.String |
getState()
Returns the state of the wrapped Service. |
void |
kill()
Kills the wrapped Service. |
boolean |
pause()
Pauses the wrapped Service. |
boolean |
resume()
Resumes the wrapped Service. |
void |
setConfigInfo(ConfigProperties info)
Set the Properties instance for this Service |
boolean |
start()
Start the wrapped Service instance. |
boolean |
stop()
Stop the wrapped Service instance; as with start , the Service
gets 15 seconds to stop itself before the ServerManager is free to take
more drastic steps. |
Method Detail |
public boolean start()
start
call, the Server and/or
ServerManager are free to destroy it.public boolean stop()
start
, the Service
gets 15 seconds to stop itself before the ServerManager is free to take
more drastic steps.public boolean pause()
public boolean resume()
public void kill()
public java.lang.String getState()
public java.lang.String getInstanceID()
public java.lang.Exception getLastError()
public ConfigProperties getConfigInfo()
public void setConfigInfo(ConfigProperties info)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |