public interface Service
Thanks to Markus Elfring for his email.
Modifier and Type | Field and Description |
---|---|
static int |
INIT |
static int |
RUNNING |
static int |
STOPPED |
static int |
SUSPENDED |
static int |
UNKNOWN
Un initialised or unknown
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getServiceError()
Returns service error if any.
|
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
|
static final int UNKNOWN
static final int STOPPED
static final int INIT
static final int SUSPENDED
static final int RUNNING
boolean initService(java.lang.Object[] config)
boolean startService()
boolean stopService()
boolean suspendService()
boolean resumeService()
java.lang.String info()
<<ServiceName>> v<<Version_No>>\n
<<IP_ADDRESS>> <<PORT_NO>>\n
<<ANY OTHET INFORMATION>>
int getServiceState()
Service
interface.java.lang.Throwable getServiceError()
Copyright © 2003-2014 QuickServer.org