org.jboss.test.cluster.drm
Class DRMUser
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.test.cluster.drm.DRMUser
- All Implemented Interfaces:
- DistributedReplicantManager.ReplicantListener (src) , IReplicants (src) , NotificationBroadcaster (src) , NotificationEmitter (src)
- public class DRMUser
- extends JBossNotificationBroadcasterSupport (src)
- implements IReplicants (src) , DistributedReplicantManager.ReplicantListener (src)
Tests of the DistributedReplicantManager aspect of the HAPartition service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Logger (src) log
drm
protected DistributedReplicantManager (src) drm
category
protected java.lang.String category
partitionName
protected java.lang.String partitionName
sequence
protected long sequence
DRMUser
public DRMUser()
getPartitionName
public java.lang.String getPartitionName()
setPartitionName
public void setPartitionName(java.lang.String partitionName)
getCategory
public java.lang.String getCategory()
setCategory
public void setCategory(java.lang.String category)
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Throws:
java.lang.Exception
lookupLocalReplicant
public java.io.Serializable lookupLocalReplicant()
- Specified by:
lookupLocalReplicant
in interface IReplicants (src)
lookupLocalReplicants
public java.util.List lookupLocalReplicants()
- Specified by:
lookupLocalReplicants
in interface IReplicants (src)
replicantsChanged
public void replicantsChanged(java.lang.String key,
java.util.List newReplicants,
int newReplicantsViewId)
- Description copied from interface:
DistributedReplicantManager.ReplicantListener (src)
- Callback called when the content/list of replicant for a given replicant key has changed
- Specified by:
replicantsChanged
in interface DistributedReplicantManager.ReplicantListener (src)
- Parameters:
key
- The name of the key of the replicant that has changednewReplicants
- The list of new replicants for the give replicant keynewReplicantsViewId
- The new replicant view id corresponding to this change