org.jboss.ha.framework.interfaces
Interface HASingletonMBean

All Known Subinterfaces:
HASingleton<E>
All Known Implementing Classes:
HASingletonImpl

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.

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

Method Summary
 boolean isMasterNode()
          True if this cluster node has the active mbean singleton, false otherwise
 

Method Detail

isMasterNode

boolean isMasterNode()
True if this cluster node has the active mbean singleton, false otherwise



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