站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 cluster API Documentation 英文版文档

HASingletonMBean (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


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 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.

Version:
$Revision: 1.2 $

Revisions:

Author:
Ivelin Ivanov

Field Summary
 
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()
           
 
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, 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
 

Method Detail

isMasterNode

public boolean isMasterNode()
Returns:
true if this cluster node has the active mbean singleton. false otherwise


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.