Static Public Member Functions

GridGain.Client.GridClientFactory Class Reference

Client factory opens and closes clients. It also tracks all currently opened clients as well.

List of all members.

Static Public Member Functions

static IGridClient Start (IGridClientConfiguration cfg)
 Starts a client with given configuration. Starting client will be assigned a randomly generated Guid which can be obtained by IGridClient.Id method.
static void StopAll ()
 Waits for all open clients to finish their operations and stops them, This method is equivalent to stopAll(true) method invocation.
static void StopAll (bool wait)
 Stops all currently open clients.
static void Stop (Guid clientId)
 Waits for all pending requests for a particular client to be completed (no new requests will be accepted) and then closes the client. This method is equivalent to stop(clientId, true).
static void Stop (Guid clientId, bool wait)
 Stops particular client.

Member Function Documentation

static IGridClient GridGain.Client.GridClientFactory.Start ( IGridClientConfiguration  cfg  )  [static]
Parameters:
cfg Client configuration.
Returns:
Started client.
Exceptions:
GridClientException If client could not be created.
static void GridGain.Client.GridClientFactory.Stop ( Guid  clientId,
bool  wait 
) [static]
Parameters:
clientId Client identifier to close.
wait If true then client will wait to finish all ongoing requests before

closing (however, no new requests will be accepted). If false, client will be closed immediately and all ongoing requests will be failed.

static void GridGain.Client.GridClientFactory.Stop ( Guid  clientId  )  [static]
Parameters:
clientId Identifier of client to close.

Stop(Guid, bool)

static void GridGain.Client.GridClientFactory.StopAll ( bool  wait  )  [static]
Parameters:
wait If true then each client will wait to finish all ongoing requests before

closing (however, no new requests will be accepted). If false, clients will be closed immediately and all ongoing requests will be failed.

static void GridGain.Client.GridClientFactory.StopAll (  )  [static]