org.jboss.ha.singleton
Interface HASingletonMBean

All Superinterfaces:
HAServiceMBean, org.jboss.ha.framework.interfaces.HASingletonMBean, NotificationBroadcaster, Service, ServiceMBean
All Known Subinterfaces:
HASingletonControllerMBean, HASingletonSupportMBean
All Known Implementing Classes:
HASingletonController

Deprecated.

@Deprecated
public interface HASingletonMBean
extends HAServiceMBean, org.jboss.ha.framework.interfaces.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. Replaced by HASingletonMBean

Version:
$Revision: 81001 $
Author:
Ivelin Ivanov, Dimitris Andreadis

Field Summary
static String HASINGLETON_STARTED_NOTIFICATION
          Deprecated.  
static String HASINGLETON_STARTING_NOTIFICATION
          Deprecated. Notifications emitted locally by an HASingleton to indicate state transitions
static String HASINGLETON_STOPPED_NOTIFICATION
          Deprecated.  
static String HASINGLETON_STOPPING_NOTIFICATION
          Deprecated.  
 
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
 
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, setClusterPartition, setDistributedState, setHAPartition
 
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
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingletonMBean
isMasterNode
 

Field Detail

HASINGLETON_STARTING_NOTIFICATION

static final String HASINGLETON_STARTING_NOTIFICATION
Deprecated. 
Notifications emitted locally by an HASingleton to indicate state transitions

See Also:
Constant Field Values

HASINGLETON_STARTED_NOTIFICATION

static final String HASINGLETON_STARTED_NOTIFICATION
Deprecated. 
See Also:
Constant Field Values

HASINGLETON_STOPPING_NOTIFICATION

static final String HASINGLETON_STOPPING_NOTIFICATION
Deprecated. 
See Also:
Constant Field Values

HASINGLETON_STOPPED_NOTIFICATION

static final String HASINGLETON_STOPPED_NOTIFICATION
Deprecated. 
See Also:
Constant Field Values


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.