com.pcbsys.nirvana.nAdminAPI.nClusterEventListener Interface Reference

Interface allowing client applications to receive cluster specific callbacks. More...

Public Member Functions

void memberAdded (nRealmNode node)
 Called with a new Nirvana Realm is added to the cluster. More...
 
void memberDeleted (nRealmNode node)
 Called when a Nirvana Realm is deleted from the cluster. More...
 
void quorumLost ()
 Called when the cluster has lost quorum.
 
void quorumReached (nRealmNode masterNode)
 Called when the cluster achieves quorum. More...
 
void report (String source, String message)
 Called when cluster log events are received. More...
 
void stateChange (nRealmNode node, String newState)
 Called when a member of the cluster changes state. More...
 
void statusUpdate (nClusterStatus update)
 Called when a Cluster status has changed. More...
 

Detailed Description

Interface allowing client applications to receive cluster specific callbacks.

Member Function Documentation

void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.memberAdded ( nRealmNode  node)

Called with a new Nirvana Realm is added to the cluster.

Parameters
nodenRealmNode object of the added realm.
void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.memberDeleted ( nRealmNode  node)

Called when a Nirvana Realm is deleted from the cluster.

Parameters
nodenRealmNode object of the deleted realm.
void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.quorumReached ( nRealmNode  masterNode)

Called when the cluster achieves quorum.

Parameters
masterNodenRealmNode of the master node for the cluster.
void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.report ( String  source,
String  message 
)

Called when cluster log events are received.

Parameters
sourceRealm server where the log event came from.
messageCluster message text.
void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.stateChange ( nRealmNode  node,
String  newState 
)

Called when a member of the cluster changes state.

Parameters
nodeof the realm within the cluster.
newStatenew state that the node has achieved.
void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.statusUpdate ( nClusterStatus  update)

Called when a Cluster status has changed.

Parameters
updatenClusterStatus object containing the changes to the cluster.