|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.WrapperService
public class WrapperService
Service implementation that delegates to a wrapped Service instance.
Field Summary | |
---|---|
protected Service |
m_service The (wrapped) Service. |
Constructor Summary | |
---|---|
WrapperService(Service service) Create a new WrapperService that delegates to the given Service instance. |
Method Summary | |
---|---|
void |
addMemberListener(MemberListener listener) |
void |
addServiceListener(ServiceListener listener) Register a ServiceListener that will receive events pertaining to the lifecycle of this Service. |
void |
configure(XmlElement xml) Configure the controllable service. |
Cluster |
getCluster() |
ClassLoader |
getContextClassLoader() Retrieve the context ClassLoader for this object. |
ServiceInfo |
getInfo() |
Serializer |
getSerializer() |
Service |
getService() Return the wrapped Service. |
Object |
getUserContext() |
boolean |
isRunning() Determine whether or not the controllable service is running. |
void |
removeMemberListener(MemberListener listener) |
void |
removeServiceListener(ServiceListener listener) Unregister a ServiceListener from this ConnectionManager. |
void |
setContextClassLoader(ClassLoader loader) Specify the context ClassLoader for this object. |
void |
setUserContext(Object oCtx) |
void |
shutdown() Stop the controllable service. |
void |
start() Start the controllable service. |
void |
stop() Hard-stop the controllable service. |
String |
toString() |
Field Detail |
---|
protected Service m_service
Constructor Detail |
---|
public WrapperService(Service service)
service
- the Service to wrapMethod Detail |
---|
public Cluster getCluster()
public ServiceInfo getInfo()
public void addMemberListener(MemberListener listener)
public void removeMemberListener(MemberListener listener)
public Object getUserContext()
public void setUserContext(Object oCtx)
public Serializer getSerializer()
public void addServiceListener(ServiceListener listener)
addServiceListener
in interface Service
listener
- the new ServiceListener to register; if the listener has already been registered, this method has no effectpublic void removeServiceListener(ServiceListener listener)
removeServiceListener
in interface Service
listener
- the ServiceListener to deregister; if the listener has not previously been registered, this method has no effectpublic void configure(XmlElement xml)
This method can only be called before the controllable service is started.
configure
in interface Controllable
xml
- an XmlElement carrying configuration information specific to the Controllable objectpublic void 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.
start
in interface Controllable
public boolean isRunning()
isRunning
in interface Controllable
public void shutdown()
Controllable.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.
shutdown
in interface Controllable
public void stop()
Controllable.shutdown()
for normal service termination. Calling this method for a service that has already stopped has no effect.stop
in interface Controllable
public ClassLoader getContextClassLoader()
getContextClassLoader
in interface ClassLoaderAware
Thread.getContextClassLoader()
public void setContextClassLoader(ClassLoader loader)
setContextClassLoader
in interface ClassLoaderAware
loader
- the context ClassLoader for this objectpublic String toString()
public Service getService()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |