public interface Service
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_CTRL |
static int |
DEBUG_DIFF |
static int |
DEBUG_INIT |
static int |
DEBUG_LOAD |
static int |
DEBUG_LOOP |
static int |
DEBUG_NONE |
static int |
DEBUG_REPT |
static int |
DEBUG_TRAN |
static int |
DEBUG_UPDT |
static int |
SERVICE_CLOSED |
static int |
SERVICE_DISABLED |
static int |
SERVICE_PAUSE |
static int |
SERVICE_READY |
static int |
SERVICE_RETRYING |
static int |
SERVICE_RUNNING |
static int |
SERVICE_STANDBY |
static int |
SERVICE_STOPPED |
static java.lang.String[] |
statusText |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes all opened resources
|
int |
doRequest(Event request,
int timeout)
process a request in Event, loads the response into the Event and
returns 1 for success, 0 for timed out and -1 for failure
|
int |
getDebugMode()
returns the debug mode of the service
|
java.lang.String |
getName()
returns the name of the service
|
java.lang.String |
getOperation()
returns the string of the operation
|
int |
getStatus()
returns the status of the service
|
void |
setDebugMode(int debug)
sets the debug mode of the service
|
static final int SERVICE_READY
static final int SERVICE_RUNNING
static final int SERVICE_RETRYING
static final int SERVICE_PAUSE
static final int SERVICE_STANDBY
static final int SERVICE_DISABLED
static final int SERVICE_STOPPED
static final int SERVICE_CLOSED
static final int DEBUG_NONE
static final int DEBUG_INIT
static final int DEBUG_REPT
static final int DEBUG_DIFF
static final int DEBUG_UPDT
static final int DEBUG_CTRL
static final int DEBUG_LOAD
static final int DEBUG_LOOP
static final int DEBUG_TRAN
static final java.lang.String[] statusText
int doRequest(Event request, int timeout)
java.lang.String getOperation()
java.lang.String getName()
int getStatus()
int getDebugMode()
void setDebugMode(int debug)
void close()