|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.util.SimpleConfigurable | +--org.apache.xindice.server.services.XindiceService
XindiceService controls the Xindice server instance. TODO: We need to properly handle the control states for services.
Fields inherited from interface org.apache.xindice.server.Service |
RESULT_BUSY, RESULT_FAILED, RESULT_INVALID, RESULT_OK, STATE_STARTED, STATE_STOPPED, STATE_SUSPENDED |
Constructor Summary | |
XindiceService()
|
Method Summary | |
Database |
getDatabase()
Returns the Database instance for the currently running server. |
java.lang.String |
getName()
getName retrieves the contextually important name of the object |
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 |
setKernel(Kernel kernel)
setKernel provides a Kernel callback interface to the implementing object. |
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 org.apache.xindice.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XindiceService()
Method Detail |
public void setConfig(Configuration config) throws XindiceException
Configurable
setConfig
in class SimpleConfigurable
org.apache.xindice.util.Configurable
config
- The configuration Nodepublic int initialize()
Service
initialize
in interface Service
org.apache.xindice.server.Service
public Database getDatabase()
public void setKernel(Kernel kernel)
KernelAccess
setKernel
in interface KernelAccess
org.apache.xindice.server.KernelAccess
kernel
- the Kernel referencepublic int status()
status
in interface Service
public java.lang.String statusMessage()
statusMessage
in interface Service
public int start()
start
in interface Service
public int stop()
stop
in interface Service
public int suspend()
suspend
in interface Service
public int resume()
resume
in interface Service
public int uninitialize()
uninitialize
in interface Service
public java.lang.String getName()
getName
in interface Named
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |