| org.jboss.ha.framework.interfaces.DistributedReplicantManager
All known Subclasses: org.jboss.proxy.ejb.ProxyFactoryHA, org.jboss.proxy.generic.ProxyFactoryHA, org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge,
DistributedReplicantManager | public interface DistributedReplicantManager (Code) | | author: Bill Burke. author: Sacha Labourey. version: $Revision: 57188 $ version: Revisions:
version: 2001/10/31: marcf version: version: - DRM is no longer remote
version:
version: 2002/08/23: Sacha Labourey version: version: - added isMasterReplica
version:
|
Inner Class :public interface ReplicantListener | |
add | public void add(String key, Serializable replicant) throws Exception(Code) | | Add a replicant, it will be attached to this cluster node
Parameters: key - Replicant name. All replicas around the cluster must use the same key name. Parameters: replicant - Local data of the replicant, that is, any serializable data throws: Exception - Thrown if a cluster communication problem occurs |
getAllServices | public Collection getAllServices()(Code) | | Return a list of all services that have a least one replicant.
A collection of services names (String) |
getReplicantsViewId | public int getReplicantsViewId(String key)(Code) | | Returns an id corresponding to the current view of this set of replicants.
Parameters: key - The replicant name A view id (doesn't grow sequentially) |
isMasterReplica | public boolean isMasterReplica(String key)(Code) | | Indicates if the current node is the master replica for this given key.
Parameters: key - The replicant name True if this node is the master |
lookupLocalReplicant | public Serializable lookupLocalReplicant(String key)(Code) | | Lookup the replicant attached to this cluster node
Parameters: key - The name of the replicant The local replicant for the give key name |
lookupReplicants | public List lookupReplicants(String key)(Code) | | Return a list of all replicants.
Parameters: key - The replicant name An list of serialized replicants available around the cluster for the given key. This list will be in the same order in all nodes in the cluster. |
lookupReplicantsNodeNames | public List lookupReplicantsNodeNames(String key)(Code) | | Return a list of all replicants node names.
Parameters: key - The replicant name A list the node names of cluster nodes that have made availablea replicant for the given key. This list will be in the same order in all nodes in the cluster. |
registerListener | public void registerListener(String key, ReplicantListener subscriber)(Code) | | Subscribe a new listener
ReplicantListener for replicants change
Parameters: key - Name of the replicant, must be identical cluster-wide for all identical replicants Parameters: subscriber - The subsribing ReplicantListener |
remove | public void remove(String key) throws Exception(Code) | | Remove the entire key from the ReplicationService
Parameters: key - Name of the replicant throws: Exception - Thrown if a cluster communication problem occurs |
unregisterListener | public void unregisterListener(String key, ReplicantListener subscriber)(Code) | | Unsubscribe a listener
ReplicantListener that had subscribed for replicants changes
Parameters: key - Name of the replicant, must be identical cluster-wide for all identical replicants Parameters: subscriber - The unsubscribing ReplicantListener |
|
|