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


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^ config, Boolean useMemberType)
static DistributedSystemConnect (String^ name, Properties^ config)
static DistributedSystemConnect (String^ name)
static void Disconnect ()
static DistributedSystemGetInstance ()

Properties

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


Member Function Documentation

static DistributedSystem ^ GemStone::GemFire::Cache::DistributedSystem::Connect ( String^   name,
Properties^   config,
Boolean  useMemberType 
) [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
useMemberType If true (default), use the configuration property "member type". If false, always set member type to Server.
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.
LicenseException if no valid license is found.
UnknownException otherwise

static DistributedSystem ^ GemStone::GemFire::Cache::DistributedSystem::Connect ( String^   name,
Properties^   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.
LicenseException if no valid license is found.
UnknownException otherwise

static DistributedSystem ^ GemStone::GemFire::Cache::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.
LicenseException if no valid license is found.
UnknownException otherwise

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

Disconnect from the distributed system.

Exceptions:
IllegalStateException if not connected.

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

Returns a reference to this DistributedSystem instance.

Returns:
the DistributedSystem instance


Property Documentation

Boolean GemStone::GemFire::Cache::DistributedSystem::IsConnected [static, get]

The current connection status of this client to the DistributedSystem.

Returns:
true if connected, false otherwise

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

Get the name that identifies this DistributedSystem instance.

Returns:
the name of the DistributedSystem instance.

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

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

Returns:
the SystemProperties


GemFire C++ Cache .NET API Documentation