|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is for any class that would like to follow Service Configurator Pattern.
Thanks to Markus Elfring for his email.
Field Summary | |
static int |
INIT
|
static int |
RUNNING
|
static int |
STOPPED
|
static int |
SUSPENDED
|
static int |
UNKNOWN
Un initialised or unknown |
Method Summary | |
int |
getServiceState()
Returns the state of the process As any constant of Service interface. |
java.lang.String |
info()
Information about the service, recommended format given below. |
boolean |
initService(java.lang.Object[] config)
Initialise and create the service |
boolean |
resumeService()
Resume the service |
boolean |
startService()
Start the service |
boolean |
stopService()
Stop the service |
boolean |
suspendService()
Suspend the service |
Field Detail |
public static final int UNKNOWN
public static final int STOPPED
public static final int INIT
public static final int SUSPENDED
public static final int RUNNING
Method Detail |
public boolean initService(java.lang.Object[] config)
public boolean startService()
public boolean stopService()
public boolean suspendService()
public boolean resumeService()
public java.lang.String info()
<<ServiceName>> v<<Version_No>>\n
<<IP_ADDRESS>> <<PORT_NO>>\n
<<ANY OTHET INFORMATION>>
public int getServiceState()
Service
interface.
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |