/*************************************** * * * JBoss: The OpenSource J2EE WebOS * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * ***************************************/ package org.jboss.ha.singleton; import org.jboss.ha.jmx.HAServiceMBean; /** *
* HA-Singleton interface. * Only one mbean is active at any point of time cluster-wide. *
* ** The abstract service provides a simple way for a concrete mbeans to detect whether * or not it is the active one in the cluster. *
* ** Concrete mbeans would usually do activities like regular clean up of database tables * or saving statistics about cluster usage. *
* * @author Ivelin Ivanov * @version $Revision: 1.1.2.2 $ * *Revisions:
*/
public interface HASingletonMBean extends HAServiceMBean
{
/**
*
* @return true if this cluster node has the active mbean singleton.
* false otherwise
*/
public boolean isMasterNode();
}