|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.javageeks.gjas.LocalServer
Server wraps the Service instance, using Future calls to help preserve the responsiveness and robustness of the ServerManager.
Constructor Summary | |
LocalServer(Service svc)
Construct a Server around a Service instance. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalServer(Service svc)
Method Detail |
public boolean start()
start
call, the Server and/or
ServerManager are free to destroy it.start
in interface IServer
public boolean stop()
start
, the Service
gets 15 seconds to stop itself before the ServerManager is free to take
more drastic steps.stop
in interface IServer
public boolean pause()
pause
in interface IServer
public boolean resume()
resume
in interface IServer
public void kill()
IServer
kill
in interface IServer
public java.lang.String getState()
IServer
getState
in interface IServer
public java.lang.String getInstanceID()
IServer
getInstanceID
in interface IServer
public java.lang.Exception getLastError()
IServer
getLastError
in interface IServer
public ConfigProperties getConfigInfo()
getConfigInfo
in interface IServer
public void setConfigInfo(ConfigProperties info)
setConfigInfo
in interface IServer
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |