org.jboss.ha.singleton
Interface HASingletonMBean
- All Superinterfaces:
- HAServiceMBean, javax.management.NotificationBroadcaster, org.jboss.system.Service, org.jboss.system.ServiceMBean
- All Known Subinterfaces:
- HASingletonControllerMBean
- All Known Implementing Classes:
- HASingletonController, HASingletonSupport
public interface HASingletonMBean
- extends 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.
- Version:
- $Revision: 1.2.8.2 $
- Author:
- Ivelin Ivanov, Dimitris Andreadis
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary |
boolean |
isMasterNode()
True if this cluster node has the active mbean singleton, false otherwise |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
HASINGLETON_STARTING_NOTIFICATION
static final String HASINGLETON_STARTING_NOTIFICATION
- Notifications emitted locally by an HASingleton to indicate state transitions
- See Also:
- Constant Field Values
HASINGLETON_STARTED_NOTIFICATION
static final String HASINGLETON_STARTED_NOTIFICATION
- See Also:
- Constant Field Values
HASINGLETON_STOPPING_NOTIFICATION
static final String HASINGLETON_STOPPING_NOTIFICATION
- See Also:
- Constant Field Values
HASINGLETON_STOPPED_NOTIFICATION
static final String HASINGLETON_STOPPED_NOTIFICATION
- See Also:
- Constant Field Values
isMasterNode
boolean isMasterNode()
- True if this cluster node has the active mbean singleton, false otherwise
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.