GemStone::GemFire::Cache::Generic::DistributedSystem Class Reference

Inherits GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::DistributedSystem >.


Detailed Description

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

In order to participate as a client in the GemFire Java servers distributed system, each application needs to connect to the DistributedSystem.

Static Public Member Functions

static DistributedSystemConnect (String^ name, Properties< String^ , String^ >^config)
static DistributedSystemConnect (String^ name)
static void Disconnect ()
static DistributedSystemGetInstance ()

Protected Member Functions

void _SetNativePtr (gemfire::DistributedSystem *nativeptr)
void AssignPtr (gemfire::DistributedSystem *nativeptr)
void InternalCleanup ()
void SetPtr (gemfire::DistributedSystem *nativeptr)

Properties

static bool IsConnected [get]
String^  Name [get]
static
GemStone::GemFire::Cache::Generic::SystemProperties^  
SystemProperties [get]


Member Function Documentation

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::DistributedSystem >::_SetNativePtr ( gemfire::DistributedSystem *  nativeptr  )  [inline, protected, inherited]

Set the native pointer to the new object without doing a preserveSB(). DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::DistributedSystem >::AssignPtr ( gemfire::DistributedSystem *  nativeptr  )  [inline, protected, inherited]

Used to assign the native pointer to a new object.

Note the order of preserveSB() and releaseSB(). This handles the corner case when m_nativeptr is same as nativeptr.

static DistributedSystem ^ GemStone::GemFire::Cache::Generic::DistributedSystem::Connect ( String^   name,
Properties< String^ , String^ >^  config 
) [static]

Initializes the Native Client system to be able to connect to the GemFire Java servers.

Parameters:
name the name of the system to connect to
config the set of properties
Exceptions:
IllegalArgumentException if name is null
NoSystemException if the connecting target is not running
AlreadyConnectedException if trying a second connect. An application can have one only one connection to a DistributedSystem.
UnknownException otherwise

static DistributedSystem ^ GemStone::GemFire::Cache::Generic::DistributedSystem::Connect ( String^   name  )  [static]

Initializes the Native Client system to be able to connect to the GemFire Java servers.

Parameters:
name the name of the system to connect to
Exceptions:
IllegalArgumentException if name is null
NoSystemException if the connecting target is not running
AlreadyConnectedException if trying a second connect. An application can have one only one connection to a DistributedSystem.
UnknownException otherwise

static void GemStone::GemFire::Cache::Generic::DistributedSystem::Disconnect (  )  [static]

Disconnect from the distributed system.

Exceptions:
IllegalStateException if not connected

static DistributedSystem ^ GemStone::GemFire::Cache::Generic::DistributedSystem::GetInstance (  )  [static]

Returns a reference to this DistributedSystem instance.

Returns:
the DistributedSystem instance

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::DistributedSystem >::InternalCleanup (  )  [inline, protected, inherited]

Internal cleanup function invoked by dispose/finalizer.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::DistributedSystem >::SetPtr ( gemfire::DistributedSystem *  nativeptr  )  [inline, protected, inherited]

Used to set the native pointer to a new object. This should only be used when you know that the underlying object is NULL.


Property Documentation

bool GemStone::GemFire::Cache::Generic::DistributedSystem::IsConnected [static, get]

The current connection status of this client to the DistributedSystem.

Returns:
true if connected, false otherwise

String^ GemStone::GemFire::Cache::Generic::DistributedSystem::Name [get]

Get the name that identifies this DistributedSystem instance.

Returns:
the name of the DistributedSystem instance.

GemStone:: GemFire:: Cache:: Generic:: SystemProperties^ GemStone::GemFire::Cache::Generic::DistributedSystem::SystemProperties [static, get]

Returns the SystemProperties used to create this instance of a DistributedSystem.

Returns:
the SystemProperties


GemFire C++ Cache .NET API Documentation