DistributedReplicantManager is a service on top of {@link HAPartition} that provides acluster-wide distributed state which is node-specific. The DistributedReplicantManager (DRM) service provides a <String key, Serializable replicant> tuple map. Each node in the cluster stores its own data for a given key. This data is replicated so that reading values for a key is always performed locally.
Typical usages for DistributedReplicantManager are:
- To serve as a distributed registry for remote service endpoints for clustered services. In this usage, the Serializable
replicants
that services store in the DRM are information (e.g. RMI stubs, JBoss Remoting InvokerLocator
instances, HTTP URLs etc) that remote clients would need to contact the clustered service. This usage of DRM drives the smart clustered proxy implementations used by JBoss AS. - To simply serve as a distributed registry showing on what cluster nodes particular services are deployed. Here the Serializable
replicants
that services store in the DRM are usually just simple placeholder strings; the presence of the tuple itself is what indicates the service is available on a particular node. This usage of DRM drives JBoss AS services like HASingleton.
@author
Bill Burke.
@author
Sacha Labourey.
@author
Brian Stansberry
@author
Galder Zamarreno
@version $Revision: 69398 $
Revisions:
2001/10/31: marcf
- DRM is no longer remote
2002/08/23: Sacha Labourey
- added isMasterReplica