com::pcbsys::nirvana::nAdminAPI::nClusterEventListener Class Referenceabstract

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

#include <nClusterEventListener.h>

Public Member Functions

virtual void memberAdded (nRealmNode *pNode)=0
 Called with a new Nirvana Realm is added to the cluster. More...
 
virtual void memberDeleted (nRealmNode *pNode)=0
 Called when a Nirvana Realm is deleted from the cluster. More...
 
virtual void quorumLost ()=0
 Called when the cluster has lost quorum.
 
virtual void quorumReached (nRealmNode *pMasterNode)=0
 Called when the cluster achieves quorum. More...
 
virtual void report (const std::string &source, const std::string &message)=0
 Called when cluster log events are received. More...
 
virtual void stateChange (nRealmNode *pNode, const std::string &newState)=0
 Called when a member of the cluster changes state. More...
 
virtual void statusUpdate (nClusterStatus *pUpdate)=0
 Called when a Cluster status has changed. More...
 

Detailed Description

Interface allowing client applications to receive cluster specific callbacks.

Member Function Documentation

virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::memberAdded ( nRealmNode pNode)
pure virtual

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

Parameters
pNode*nRealmNode object of the added realm.
virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::memberDeleted ( nRealmNode pNode)
pure virtual

Called when a Nirvana Realm is deleted from the cluster.

Parameters
pNode*nRealmNode object of the deleted realm.
virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::quorumReached ( nRealmNode pMasterNode)
pure virtual

Called when the cluster achieves quorum.

Parameters
pMasterNode*nRealmNode of the master node for the cluster.
virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::report ( const std::string &  source,
const std::string &  message 
)
pure virtual

Called when cluster log events are received.

Parameters
sourceRealm server where the log event came from.
messageCluster message text.
virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::stateChange ( nRealmNode pNode,
const std::string &  newState 
)
pure virtual

Called when a member of the cluster changes state.

Parameters
pNodeof the realm within the cluster.
newStatenew state that the node has achieved as a string.
virtual void com::pcbsys::nirvana::nAdminAPI::nClusterEventListener::statusUpdate ( nClusterStatus pUpdate)
pure virtual

Called when a Cluster status has changed.

Parameters
pUpdate*nClusterStatus object containing the changes to the cluster.