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.
void memberDeleted (nRealmNode node)
 Called when a Nirvana Realm is deleted from the cluster.
void quorumLost ()
 Called when the cluster has lost quorum.
void quorumReached (nRealmNode masterNode)
 Called when the cluster achieves quorum.
void report (string source, string message)
 Called when cluster log events are received.
void stateChange (nRealmNode node, string newState)
 Called when a member of the cluster changes state.
void statusUpdate (nClusterStatus update)
 Called when a Cluster status has changed.

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:
node nRealmNode 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:
node nRealmNode object of the deleted realm.

void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.quorumReached ( nRealmNode  masterNode  ) 

Called when the cluster achieves quorum.

Parameters:
masterNode nRealmNode 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:
source Realm server where the log event came from.
message Cluster message text.

void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.stateChange ( nRealmNode  node,
string  newState 
)

Called when a member of the cluster changes state.

Parameters:
node of the realm within the cluster.
newState new state that the node has achieved.

void com.pcbsys.nirvana.nAdminAPI.nClusterEventListener.statusUpdate ( nClusterStatus  update  ) 

Called when a Cluster status has changed.

Parameters:
update nClusterStatus object containing the changes to the cluster.