Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha » singleton » [javadoc | source]
org.jboss.ha.singleton
public class: HASingletonController [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ha.jmx.HAServiceMBeanSupport
            org.jboss.ha.singleton.HASingletonSupport
               org.jboss.ha.singleton.HASingletonController

All Implemented Interfaces:
    HASingletonControllerMBean, HASingletonMBean, HASingleton, HAServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

Direct Known Subclasses:
    HASingletonControllerTester

A clustered singleton service that calls a configurable method on a target (m)bean, whenever the current node becomes the master. Correspondingly, it calls a configurable method on the target (m)bean, whenever the current node resigns from being the master. Optional string arguments may be passed to those methods.
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public HASingletonController() 
Method from org.jboss.ha.singleton.HASingletonController Summary:
getTarget,   getTargetMethod,   getTargetName,   getTargetStartMethod,   getTargetStartMethodArgument,   getTargetStopMethod,   getTargetStopMethodArgument,   invokeSingletonMBeanMethod,   invokeSingletonMethod,   setTarget,   setTargetName,   setTargetStartMethod,   setTargetStartMethodArgument,   setTargetStopMethod,   setTargetStopMethodArgument,   startSingleton,   stopSingleton
Methods from org.jboss.ha.singleton.HASingletonSupport:
_stopOldMaster,   createService,   getElectionPolicy,   getRestartOnMerge,   isMasterNode,   makeThisNodeMaster,   partitionTopologyChanged,   restartMaster,   setElectionPolicy,   setRestartOnMerge,   startNewMaster,   startSingleton,   stopSingleton
Methods from org.jboss.ha.jmx.HAServiceMBeanSupport:
_receiveRemoteNotification,   callAsyncMethodOnPartition,   callMethodOnPartition,   getDistributedState,   getHAPartition,   getPartitionName,   getSendLocalLifecycleNotifications,   getSendRemoteLifecycleNotifications,   getServiceHAName,   isDRMMasterReplica,   isRegisterThreadContextClassLoader,   partitionTopologyChanged,   registerDRMListener,   registerRPCHandler,   sendNotification,   sendNotificationRemote,   sendNotificationToLocalListeners,   setClusterPartition,   setDistributedState,   setHAPartition,   setRegisterThreadContextClassLoader,   setSendLocalLifecycleNotifications,   setSendRemoteLifecycleNotifications,   setServiceHAName,   setupPartition,   startService,   stopService,   unregisterDRMListener,   unregisterRPCHandler
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.singleton.HASingletonController Detail:
 public Object getTarget() 
 public static Method getTargetMethod(Object target,
    String methodName,
    Class[] types) throws NoSuchMethodException 
 public ObjectName getTargetName() 
 public String getTargetStartMethod() 
 public String getTargetStartMethodArgument() 
 public String getTargetStopMethod() 
 public String getTargetStopMethodArgument() 
 protected Object invokeSingletonMBeanMethod(ObjectName target,
    String operationName,
    Object param) throws InstanceNotFoundException, ReflectionException, MBeanException 
 protected Object invokeSingletonMethod(Object target,
    String operationName,
    Object param) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException 
 public  void setTarget(Object target) 
 public  void setTargetName(ObjectName targetObjectName) 
 public  void setTargetStartMethod(String targetStartMethod) throws InvalidParameterException 
 public  void setTargetStartMethodArgument(String targetStartMethodArgument) 
 public  void setTargetStopMethod(String targetStopMethod) throws InvalidParameterException 
 public  void setTargetStopMethodArgument(String targetStopMethodArgument) 
 public  void startSingleton() 
    Call the target start method
 public  void stopSingleton() 
    Call the target stop method