FileDocCategorySizeDatePackage
HASingletonMBeanExampleMBean.javaAPI DocJBoss 4.2.11903Fri Jul 13 20:52:42 BST 2007org.jboss.ha.singleton.examples

HASingletonMBeanExampleMBean

public interface HASingletonMBeanExampleMBean
Sample Singleton MBean interface
author
Ivelin Ivanov

Fields Summary
Constructors Summary
Methods Summary
public booleanisMasterNode()

return
true if the node that this MBean is registered with is the master node for the singleton service

public voidstartSingleton()
Invoked when this mbean is elected to run the singleton service, or in other words when this node is elected for master.

public voidstopSingleton(java.lang.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.

param
String gracefulShutdown is an example argument passed on singleton stop