|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HASingletonMBean
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.
| Field Summary | |
|---|---|
static String |
HASINGLETON_STARTED_NOTIFICATION
|
static String |
HASINGLETON_STARTING_NOTIFICATION
Notifications emitted locally by an HASingleton to indicate state transitions |
static String |
HASINGLETON_STOPPED_NOTIFICATION
|
static String |
HASINGLETON_STOPPING_NOTIFICATION
|
| 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.ha.jmx.HAServiceMBean |
|---|
callMethodOnPartition, getClusterPartition, getDistributedState, getPartitionName, sendNotification, setClusterPartition, setDistributedState, setPartitionName |
| 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 |
| Field Detail |
|---|
static final String HASINGLETON_STARTING_NOTIFICATION
static final String HASINGLETON_STARTED_NOTIFICATION
static final String HASINGLETON_STOPPING_NOTIFICATION
static final String HASINGLETON_STOPPED_NOTIFICATION
| Method Detail |
|---|
boolean isMasterNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||