CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net
Interface Service

All Superinterfaces:
ClassLoaderAware, Controllable
All Known Subinterfaces:
CacheService, DistributedCacheService, InvocationService, PartitionedService

public interface Service
extends Controllable

This Service interface represents controllable services that operate in a clustered network environment.

Since:
Coherence 1.1
Author:
gg 2002.02.08

Method Summary
 void addMemberListener(MemberListener listener)
          Add a Member listener.
 Cluster getCluster()
          Return the Cluster object that this Service is a part of.
 ServiceInfo getInfo()
          Return the ServiceInfo object for this Service.
 Object getUserContext()
          Return the user context object associated with this Service.
 void removeMemberListener(MemberListener listener)
          Remove a Member listener.
 void setUserContext(Object oCtx)
          Associate a user context object with this Service.
 
Methods inherited from interface com.tangosol.util.Controllable
configure, getContextClassLoader, isRunning, setContextClassLoader, shutdown, start, stop
 

Method Detail

getCluster

Cluster getCluster()
Return the Cluster object that this Service is a part of.

Returns:
the Cluster object

getInfo

ServiceInfo getInfo()
Return the ServiceInfo object for this Service.

Returns:
the ServiceInfo object

addMemberListener

void addMemberListener(MemberListener listener)
Add a Member listener.

Parameters:
listener - the MemberListener to add

removeMemberListener

void removeMemberListener(MemberListener listener)
Remove a Member listener.

Parameters:
listener - the MemberListener to remove

getUserContext

Object getUserContext()
Return the user context object associated with this Service.

The data type and semantics of this context object are entirely application specific and are opaque to the Service itself.

Returns:
an associated user contex object or null if a context has not been set
Since:
Coherence 3.0

setUserContext

void setUserContext(Object oCtx)
Associate a user context object with this Service.

Parameters:
oCtx - a user context object
Since:
Coherence 3.0

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation