FileDocCategorySizeDatePackage
HASingletonMBean.javaAPI DocJBoss 4.2.12388Fri Jul 13 20:52:36 BST 2007org.jboss.ha.singleton

HASingletonMBean

public interface HASingletonMBean implements org.jboss.ha.jmx.HAServiceMBean
HA-Singleton interface. Only one mbean is active at any point in time, cluster-wide.

The service provides a simple way for a concrete mbean 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
author
Dimitris Andreadis
version
$Revision: 57188 $

Fields Summary
String
HASINGLETON_STARTING_NOTIFICATION
Notifications emitted locally by an HASingleton to indicate state transitions
String
HASINGLETON_STARTED_NOTIFICATION
String
HASINGLETON_STOPPING_NOTIFICATION
String
HASINGLETON_STOPPED_NOTIFICATION
Constructors Summary
Methods Summary
public booleanisMasterNode()
True if this cluster node has the active mbean singleton, false otherwise