com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration Class Reference

This object is used to create/modify clusters. More...

#include <nClusterMemberConfiguration.h>

Inherits com::pcbsys::nirvana::nAdminAPI::nPkgCloseListener.

Public Member Functions

virtual void closed (nRealmNode *pNode)
 Called when a realm node is closed, for internal use only. More...
 
 nClusterMemberConfiguration (nRealmNode *pRealmNode, bool bCanBeMaster=true)
 Constructor using an existing nRealmNode. More...
 
 nClusterMemberConfiguration (nSessionAttributes *pSessionAttributes, bool bCanBeMaster=true)
 Constructor using the nSessionAttributes to connect to the Nirvana Realm Server. More...
 
 nClusterMemberConfiguration (nSessionAttributes *pSessionAttributes, bool bCanBeMaster, const std::string &username)
 Constructor using the nSessionAttributes to connect to the Nirvana Realm Server. More...
 
 nClusterMemberConfiguration (const std::string &rname, bool bCanBeMaster=true)
 Constructor using the nSessionAttributes to connect to the Nirvana Realm Server. More...
 
 nClusterMemberConfiguration (const std::string &rname, bool bCanBeMaster, const std::string &username)
 Constructor using a Nirvana Realm URL to connect to the Nirvana Realm server. More...
 

Protected Member Functions

virtual nRealmNodegetNode ()
 Returns the nRealmNode object of the Nirvana Server. More...
 

Detailed Description

This object is used to create/modify clusters.

It contains the relevant information regarding a specific node to be added to the cluster.

Constructor & Destructor Documentation

com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::nClusterMemberConfiguration ( nRealmNode pRealmNode,
bool  bCanBeMaster = true 
)

Constructor using an existing nRealmNode.

Parameters
realmNoderealm node object connected to the node to be added.
canBeMasterboolean if this node can be a master within the cluster.
com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::nClusterMemberConfiguration ( nSessionAttributes pSessionAttributes,
bool  bCanBeMaster = true 
)

Constructor using the nSessionAttributes to connect to the Nirvana Realm Server.

Parameters
sessionAttributesdetails of the server to connect to.
canBeMasterboolean if this node can be a master within the cluster.
Exceptions
nBaseAdminExceptionif unable to connect to the specified realm.
com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::nClusterMemberConfiguration ( nSessionAttributes pSessionAttributes,
bool  bCanBeMaster,
const std::string &  username 
)

Constructor using the nSessionAttributes to connect to the Nirvana Realm Server.

Parameters
sessionAttributesdetails of the server to connect to.
canBeMasterboolean if this node can be a master within the cluster.
usernameto use to connect to the remote realm with.
Exceptions
nBaseAdminExceptionif unable to connect to the specified realm.
com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::nClusterMemberConfiguration ( const std::string &  rname,
bool  bCanBeMaster = true 
)

Constructor using the nSessionAttributes to connect to the Nirvana Realm Server.

Parameters
rnamedetails of the server to connect to.
canBeMasterboolean if this node can be a master within the cluster.
Exceptions
nBaseAdminExceptionif unable to connect to the specified realm.
com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::nClusterMemberConfiguration ( const std::string &  rname,
bool  bCanBeMaster,
const std::string &  username 
)

Constructor using a Nirvana Realm URL to connect to the Nirvana Realm server.

Parameters
rnameto connect to.
canBeMasterboolean if this node can be a master within the cluster.
usernameto use to connect to the remote realm with.
Exceptions
nIllegalArgumentExceptionif the rname is not valid.
nBaseAdminExceptionif unable to connect to the specified realm.

Member Function Documentation

virtual void com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::closed ( nRealmNode pNode)
virtual

Called when a realm node is closed, for internal use only.

Parameters
*pNodethe node which has been closed
virtual nRealmNode* com::pcbsys::nirvana::nAdminAPI::nClusterMemberConfiguration::getNode ( )
protectedvirtual

Returns the nRealmNode object of the Nirvana Server.

Returns
nRealmNode object.