|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Controllable
Controllable interface represents a Daemon
like object,
quite oftenly referred to as a service that usually
operates on its own thread and has a controllable life cycle.
Cluster
,
Service
Method Summary | |
---|---|
void |
configure(XmlElement xml)
Configure the controllable service. |
ClassLoader |
getContextClassLoader()
Retrieve the context ClassLoader for this controllable service. |
boolean |
isRunning()
Determine whether or not the controllable service is running. |
void |
setContextClassLoader(ClassLoader loader)
Specify the context ClassLoader for this controllable service. |
void |
shutdown()
Stop the controllable service. |
void |
start()
Start the controllable service. |
void |
stop()
Hard-stop the controllable service. |
Method Detail |
---|
void configure(XmlElement xml)
This method can only be called before the controllable service is started.
xml
- an XmlElement carrying configuration information
specific to the Controllable object
IllegalStateException
- thrown if the service is
already running
IllegalArgumentException
- thrown if the configuration
information is invalidvoid start()
This method should only be called once per the life cycle of the Controllable service. This method has no affect if the service is already running.
IllegalStateException
- thrown if a service does not support
being re-started, and the service was already started and
subsequently stopped and then an attempt is made to start
the service again; also thrown if the Controllable service
has not been configuredboolean isRunning()
void shutdown()
stop()
method.
This method should only be called once per the life cycle of the controllable service. Calling this method for a service that has already stopped has no effect.
void stop()
shutdown()
for normal service termination. Calling this method for a service
that has already stopped has no effect.
ClassLoader getContextClassLoader()
getContextClassLoader
in interface ClassLoaderAware
Thread.getContextClassLoader()
void setContextClassLoader(ClassLoader loader)
setContextClassLoader
in interface ClassLoaderAware
loader
- the context ClassLoader for this service
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |