gemfire::DistributedSystem Class Reference

Inherits gemfire::SharedBase.


Detailed Description

DistributedSystem encapsulates this applications "connection" into the GemFire Java servers distributed system.

In order to participate in the GemFire Java servers distributed system, each application needs to connect to the DistributedSystem. Each application can only be connected to one DistributedSystem.

Public Member Functions

void deregisterMembershipListener (MembershipListenerPtr &rptr)
 This functionality is unsupported in the Native Client Product.
void getCacheServerList (VectorOfMemberId &members)
 This functionality is unsupported in the Native Client Product.
void getMemberId (MemberIdPtr &rptr)
 Retrieve the MemberId used to create this Cache.
void getMembershipInfo (MemberIdPtr &idPtr, PropertiesPtr &rptr)
 This functionality is unsupported in the Native Client Product.
void getMembershipList (VectorOfMemberId &members)
 This functionality is unsupported in the Native Client Product.
virtual const char * getName () const
 Returns the name that identifies the distributed system instance.
void preserveSB () const
 Atomically increment reference count.
int32_t refCount ()
 
Returns:
the reference count

void registerMembershipListener (const MembershipListenerPtr &callbackPtr)
 This functionality is unsupported in the Native Client Product.
void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
void sendMembershipInfo (const PropertiesPtr &data)
 This functionality is unsupported in the Native Client Product.
virtual ~DistributedSystem ()

Static Public Member Functions

static
DistributedSystemPtr 
connect (const char *name, const PropertiesPtr &configPtr=0, bool useMemberType=true)
static void disconnect ()
static
DistributedSystemPtr 
getInstance ()
 Returns a pointer to the DistributedSystem instance.
static MemberType getMemberType ()
 return the type of this cache member
static SystemPropertiesgetSystemProperties ()
 Returns the SystemProperties that were used to create this instance of the DistributedSystem.
static bool isConnected ()
 Returns true if connected, false otherwise.

Protected Member Functions

 DistributedSystem (const char *name)


Constructor & Destructor Documentation

virtual gemfire::DistributedSystem::~DistributedSystem (  )  [virtual]

destructor

gemfire::DistributedSystem::DistributedSystem ( const char *  name  )  [protected]

constructors


Member Function Documentation

static DistributedSystemPtr gemfire::DistributedSystem::connect ( const char *  name,
const PropertiesPtr configPtr = 0,
bool  useMemberType = true 
) [static]

public methods

void gemfire::DistributedSystem::deregisterMembershipListener ( MembershipListenerPtr rptr  ) 

This functionality is unsupported in the Native Client Product.

static void gemfire::DistributedSystem::disconnect (  )  [static]

disconnect from the distributed system

Exceptions:
IllegalStateException. 

void gemfire::DistributedSystem::getCacheServerList ( VectorOfMemberId members  ) 

This functionality is unsupported in the Native Client Product.

static DistributedSystemPtr gemfire::DistributedSystem::getInstance (  )  [static]

Returns a pointer to the DistributedSystem instance.

Returns:
instance

void gemfire::DistributedSystem::getMemberId ( MemberIdPtr rptr  ) 

Retrieve the MemberId used to create this Cache.

void gemfire::DistributedSystem::getMembershipInfo ( MemberIdPtr idPtr,
PropertiesPtr rptr 
)

This functionality is unsupported in the Native Client Product.

void gemfire::DistributedSystem::getMembershipList ( VectorOfMemberId members  ) 

This functionality is unsupported in the Native Client Product.

static MemberType gemfire::DistributedSystem::getMemberType (  )  [static]

return the type of this cache member

virtual const char* gemfire::DistributedSystem::getName (  )  const [virtual]

Returns the name that identifies the distributed system instance.

Returns:
name

static SystemProperties* gemfire::DistributedSystem::getSystemProperties (  )  [static]

Returns the SystemProperties that were used to create this instance of the DistributedSystem.

Returns:
SystemProperties

static bool gemfire::DistributedSystem::isConnected (  )  [static]

Returns true if connected, false otherwise.

Returns:
true if connected, false otherwise

void gemfire::SharedBase::preserveSB (  )  const [inherited]

Atomically increment reference count.

int32_t gemfire::SharedBase::refCount (  )  [inline, inherited]

Returns:
the reference count

void gemfire::DistributedSystem::registerMembershipListener ( const MembershipListenerPtr callbackPtr  ) 

This functionality is unsupported in the Native Client Product.

void gemfire::SharedBase::releaseSB (  )  const [inherited]

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.

void gemfire::DistributedSystem::sendMembershipInfo ( const PropertiesPtr data  ) 

This functionality is unsupported in the Native Client Product.


GemFire C++ Cache API Documentation