public class GridClientFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static GridClient |
start(GridClientConfiguration cfg)
Starts a client with given configuration.
|
static void |
stop(UUID clientId)
Waits for all pending requests for a particular client to be completed (no new requests will be
accepted) and then closes the client.
|
static void |
stop(UUID clientId,
boolean wait)
Stops particular client.
|
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(boolean wait)
Stops all currently open clients.
|
public static GridClient start(GridClientConfiguration cfg) throws GridClientException
GridClient.id() method.cfg - Client configuration.GridClientException - If client could not be created.public static void stopAll()
stopAll(true) method invocation.stopAll(boolean)public static void stopAll(boolean wait)
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.public static void stop(UUID clientId)
stop(clientId, true).clientId - Identifier of client to close.stop(UUID, boolean)public static void stop(UUID clientId, boolean wait)
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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016