org.jboss.test.cluster.drm
Class DRMUser

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.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.


Nested Class Summary
 
Nested classes inherited from class org.jboss.test.cluster.drm.IReplicants (src)
IReplicants.NotifyData (src)
 
Field Summary
protected  java.lang.String category
           
protected  DistributedReplicantManager (src) drm
           
protected static Logger (src) log
           
protected  java.lang.String partitionName
           
protected  long sequence
           
 
Constructor Summary
DRMUser()
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.String getPartitionName()
           
 java.io.Serializable lookupLocalReplicant()
           
 java.util.List lookupLocalReplicants()
           
 void replicantsChanged(java.lang.String key, java.util.List newReplicants, int newReplicantsViewId)
          Callback called when the content/list of replicant for a given replicant key has changed
 void setCategory(java.lang.String category)
           
 void setPartitionName(java.lang.String partitionName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DRMUser

public DRMUser()
Method Detail

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 changed
newReplicants - The list of new replicants for the give replicant key
newReplicantsViewId - The new replicant view id corresponding to this change