| org.jboss.ha.singleton.examples.HASingletonMBeanExampleMBean
All known Subclasses: org.jboss.ha.singleton.examples.HASingletonMBeanExample,
HASingletonMBeanExampleMBean | public interface HASingletonMBeanExampleMBean (Code) | | Sample Singleton MBean interface
author: Ivelin Ivanov |
Method Summary | |
public boolean | isMasterNode() | public void | startSingleton() Invoked when this mbean is elected to run the singleton service,
or in other words when this node is elected for master. | public void | stopSingleton(String gracefulShutdown) Invoked when this mbean is elected to no longer run the singleton service,
or in other words when this node is elected for slave. |
isMasterNode | public boolean isMasterNode()(Code) | | true if the node that this MBean is registered withis the master node for the singleton service |
startSingleton | public void startSingleton()(Code) | | Invoked when this mbean is elected to run the singleton service,
or in other words when this node is elected for master.
|
stopSingleton | public void stopSingleton(String gracefulShutdown)(Code) | | Invoked when this mbean is elected to no longer run the singleton service,
or in other words when this node is elected for slave.
Parameters: String - gracefulShutdown is an example argument passed on singleton stop |
|
|