|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.util.SimpleConfigurable
com.dbxml.db.server.SimpleService
SimpleService is a basic Service implementation that will manage the the basic properties of a Service as well as implement default behavior for the service management methods.
Field Summary | |
static java.lang.String |
NAME
|
Fields inherited from interface com.dbxml.db.server.Service |
RESULT_BUSY, RESULT_FAILED, RESULT_INVALID, RESULT_OK, STATE_STARTED, STATE_STOPPED, STATE_SUSPENDED |
Constructor Summary | |
SimpleService()
|
Method Summary | |
void |
dispose()
dispose prepares the Service for garbage collection. |
java.lang.String |
getName()
getName returns the name of this Service. |
int |
initialize()
initialize will initialize the Service based on its current configuration. |
int |
resume()
resume resumes exection of a suspended Service. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
void |
setServerInstance(Server server)
setServerInstance sets the Server instance for this Service. |
int |
start()
start will attempt to start the Service. |
int |
status()
status returns the current operational status of this Service. |
java.lang.String |
statusMessage()
statusMessage returns a textual message about the Service's operational state. |
int |
stop()
stop will attempt to stop the Service. |
int |
suspend()
suspend suspends execution of the Service. |
int |
uninitialize()
uninitialize will uninitialize the Service based on its current configuration and will clean up any existing resources for that configuration. |
Methods inherited from class com.dbxml.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NAME
Constructor Detail |
public SimpleService()
Method Detail |
public void setServerInstance(Server server)
Service
setServerInstance
in interface Service
server
- The Server instancepublic void setConfig(Configuration config) throws dbXMLException
Configurable
setConfig
in interface Configurable
setConfig
in class SimpleConfigurable
dbXMLException
public java.lang.String getName()
Service
getName
in interface Service
public int status()
Service
status
in interface Service
public java.lang.String statusMessage()
Service
statusMessage
in interface Service
public int initialize()
Service
initialize
in interface Service
public int start()
Service
start
in interface Service
public int stop()
Service
stop
in interface Service
public int suspend()
Service
suspend
in interface Service
public int resume()
Service
resume
in interface Service
public int uninitialize()
Service
uninitialize
in interface Service
public void dispose()
Service
dispose
in interface Service
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |