|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tangosol.net.Service |
---|
Service.MemberJoinAction |
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) Add a Member 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() Return the Cluster object that this Service is a part of. |
java.lang.ClassLoader |
getContextClassLoader() Retrieve the context ClassLoader for this object. |
ServiceInfo |
getInfo() Return the ServiceInfo object for this Service. |
Serializer |
getSerializer() Return a Serializer used by this Service. |
Service |
getService() Return the wrapped Service. |
java.lang.Object |
getUserContext() Return the user context object associated with this Service. |
boolean |
isRunning() Determine whether or not the controllable service is running. |
void |
removeMemberListener(MemberListener listener) Remove a Member listener. |
void |
removeServiceListener(ServiceListener listener) Unregister a ServiceListener from this ConnectionManager. |
void |
setContextClassLoader(java.lang.ClassLoader loader) Specify the context ClassLoader for this object. |
void |
setDependencies(ServiceDependencies deps) Configure the Service. |
void |
setUserContext(java.lang.Object oCtx) Associate a user context object with this Service. |
void |
shutdown() Stop the controllable service. |
void |
start() Start the controllable service. |
void |
stop() Hard-stop the controllable service. |
java.lang.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)
listener
- the MemberListener
to addpublic void removeMemberListener(MemberListener listener)
listener
- the MemberListener
to removepublic java.lang.Object getUserContext()
The data type and semantics of this context object are entirely application specific and are opaque to the Service itself.
public void setUserContext(java.lang.Object oCtx)
oCtx
- a user context objectpublic 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)
After a ServiceListener is removed, it will no longer receive events pertaining to the lifecycle of this Service.
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 java.lang.ClassLoader getContextClassLoader()
getContextClassLoader
in interface ClassLoaderAware
Thread.getContextClassLoader()
public void setContextClassLoader(java.lang.ClassLoader loader)
setContextClassLoader
in interface ClassLoaderAware
loader
- the context ClassLoader for this objectpublic void setDependencies(ServiceDependencies deps)
This method can only be called before the Service is started.
deps
- the dependencies object carrying configuration information specific to this Servicepublic java.lang.String toString()
public Service getService()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |