org.jboss.test.ha.jmx
Class HAServiceMBeanSupportTester

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.ha.jmx.HAServiceMBeanSupport (src) 
              extended byorg.jboss.test.ha.jmx.HAServiceMBeanSupportTester
All Implemented Interfaces:
HAServiceMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class HAServiceMBeanSupportTester
extends HAServiceMBeanSupport (src)


Field Summary
 java.util.Stack __invokationStack__
           
 boolean __isDRMMasterReplica__
           
 boolean __isSingletonStarted__
           
 boolean __shouldSendNotificationRemoteFail__
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
HAServiceMBeanSupportTester()
           
 
Method Summary
 void callMethodOnPartition(java.lang.String methodName, java.lang.Object[] args)
          Convenience method for broadcasting a call to all members of a partition.
 ObjectName (src) getServiceName()
           
protected  boolean isDRMMasterReplica()
           
protected  void registerDRMListener()
           
protected  void registerRPCHandler()
           
protected  void sendNotificationRemote(Notification (src)  notification)
          Broadcast a notifcation remotely to the partition participants
protected  void sendNotificationToLocalListeners(Notification (src)  notification)
           
protected  void setupPartition()
           
protected  void unregisterDRMListener()
           
protected  void unregisterRPCHandler()
           
 
Methods inherited from class org.jboss.ha.jmx.HAServiceMBeanSupport (src)
_receiveRemoteNotification, callAsyncMethodOnPartition, callMethodOnPartition, findHAPartitionWithName, getDistributedState, getPartition, getPartitionName, getServiceHAName, partitionTopologyChanged, sendNotification, setDistributedState, setPartitionName, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 
Methods inherited from interface javax.management.NotificationBroadcaster (src)
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

__invokationStack__

public java.util.Stack __invokationStack__

__isDRMMasterReplica__

public boolean __isDRMMasterReplica__

__isSingletonStarted__

public boolean __isSingletonStarted__

__shouldSendNotificationRemoteFail__

public boolean __shouldSendNotificationRemoteFail__
Constructor Detail

HAServiceMBeanSupportTester

public HAServiceMBeanSupportTester()
Method Detail

setupPartition

protected void setupPartition()
                       throws java.lang.Exception
Overrides:
setupPartition in class HAServiceMBeanSupport (src)
Throws:
java.lang.Exception

registerRPCHandler

protected void registerRPCHandler()
Overrides:
registerRPCHandler in class HAServiceMBeanSupport (src)

unregisterRPCHandler

protected void unregisterRPCHandler()
Overrides:
unregisterRPCHandler in class HAServiceMBeanSupport (src)

registerDRMListener

protected void registerDRMListener()
                            throws java.lang.Exception
Overrides:
registerDRMListener in class HAServiceMBeanSupport (src)
Throws:
java.lang.Exception

unregisterDRMListener

protected void unregisterDRMListener()
                              throws java.lang.Exception
Overrides:
unregisterDRMListener in class HAServiceMBeanSupport (src)
Throws:
java.lang.Exception

isDRMMasterReplica

protected boolean isDRMMasterReplica()
Overrides:
isDRMMasterReplica in class HAServiceMBeanSupport (src)

callMethodOnPartition

public void callMethodOnPartition(java.lang.String methodName,
                                  java.lang.Object[] args)
                           throws java.lang.Exception
Description copied from interface: HAServiceMBean (src)
Convenience method for broadcasting a call to all members of a partition.

Specified by:
callMethodOnPartition in interface HAServiceMBean (src)
Overrides:
callMethodOnPartition in class HAServiceMBeanSupport (src)
Parameters:
methodName -
args -
Throws:
java.lang.Exception

sendNotificationRemote

protected void sendNotificationRemote(Notification (src)  notification)
                               throws java.lang.Exception
Description copied from class: HAServiceMBeanSupport (src)
Broadcast a notifcation remotely to the partition participants

Overrides:
sendNotificationRemote in class HAServiceMBeanSupport (src)
Parameters:
notification -
Throws:
java.lang.Exception

sendNotificationToLocalListeners

protected void sendNotificationToLocalListeners(Notification (src)  notification)
Overrides:
sendNotificationToLocalListeners in class HAServiceMBeanSupport (src)

getServiceName

public ObjectName (src)  getServiceName()
Overrides:
getServiceName in class ServiceMBeanSupport (src)