| Package | Description |
|---|---|
| org.gridgain.client |
Public API for GridGain Java client.
|
| org.gridgain.client.balancer |
Provides API and implementations of simple load balancers.
|
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
GridClientPartitionAffinity.node(Object key,
Collection<? extends GridClientNode> nodes)
Gets primary affinity node for a key.
|
GridClientNode |
GridClientDataAffinity.node(Object key,
Collection<? extends GridClientNode> nodes)
Gets primary affinity node for a key.
|
GridClientNode |
GridClientCompute.node(UUID id)
Gets cached node with given id from most recently refreshed topology.
|
GridClientNode |
GridClientCompute.refreshNode(String ip,
boolean includeAttrs,
boolean includeMetrics)
Refreshes and returns node by its IP address from remote grid.
|
GridClientNode |
GridClientCompute.refreshNode(UUID id,
boolean includeAttrs,
boolean includeMetrics)
Refreshes and returns node by its ID from remote grid.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<GridClientNode> |
GridClientCompute.daemonNodes()
Gets most recently refreshed set of daemon nodes.
|
Collection<GridClientNode> |
GridClientCompute.nodes()
Gets most recently refreshed topology (only non-daemon nodes included).
|
Collection<GridClientNode> |
GridClientCompute.nodes(Collection<UUID> ids)
Gets cached nodes for the given IDs based on most recently refreshed topology.
|
Collection<GridClientNode> |
GridClientCompute.nodes(GridClientPredicate<GridClientNode> filter)
Gets all cached nodes that pass the filter.
|
Collection<GridClientNode> |
GridClientData.pinnedNodes()
Gets pinned node or
null if no nodes were pinned. |
GridClientFuture<GridClientNode> |
GridClientCompute.refreshNodeAsync(String ip,
boolean includeAttrs,
boolean includeMetrics)
Asynchronously refreshes and returns node by its IP address from remote grid.
|
GridClientFuture<GridClientNode> |
GridClientCompute.refreshNodeAsync(UUID id,
boolean includeAttrs,
boolean includeMetrics)
Asynchronously refreshes and returns node by its ID from remote grid.
|
List<GridClientNode> |
GridClientCompute.refreshTopology(boolean includeAttrs,
boolean includeMetrics)
Refreshes and returns all nodes within topology.
|
GridClientFuture<List<GridClientNode>> |
GridClientCompute.refreshTopologyAsync(boolean includeAttrs,
boolean includeMetrics)
Asynchronously refreshes and returns all nodes within topology.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
GridClientPartitionAffinity.HashIdResolver.getHashId(GridClientNode node)
Gets alternate hash ID, other than node ID.
|
void |
GridClientTopologyListener.onNodeAdded(GridClientNode node)
Callback for new nodes joining the remote grid.
|
void |
GridClientPartitionAffinity.onNodeAdded(GridClientNode node)
Callback for new nodes joining the remote grid.
|
void |
GridClientTopologyListener.onNodeRemoved(GridClientNode node)
Callback for nodes leaving the remote grid.
|
void |
GridClientPartitionAffinity.onNodeRemoved(GridClientNode node)
Callback for nodes leaving the remote grid.
|
GridClientData |
GridClientData.pinNodes(GridClientNode node,
GridClientNode... nodes)
Gets client data projection which will only contact specified remote grid node.
|
GridClientData |
GridClientData.pinNodes(GridClientNode node,
GridClientNode... nodes)
Gets client data projection which will only contact specified remote grid node.
|
GridClientCompute |
GridClientCompute.projection(GridClientNode node)
Creates a projection that will communicate only with specified remote node.
|
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
GridClientPartitionAffinity.node(Object key,
Collection<? extends GridClientNode> nodes)
Gets primary affinity node for a key.
|
GridClientNode |
GridClientDataAffinity.node(Object key,
Collection<? extends GridClientNode> nodes)
Gets primary affinity node for a key.
|
Collection<GridClientNode> |
GridClientCompute.nodes(GridClientPredicate<GridClientNode> filter)
Gets all cached nodes that pass the filter.
|
GridClientCompute |
GridClientCompute.projection(Collection<GridClientNode> nodes)
Creates a projection that will communicate only with specified remote nodes.
|
GridClientCompute |
GridClientCompute.projection(Collection<GridClientNode> nodes,
GridClientLoadBalancer balancer)
Creates a projection that will communicate only with specified remote nodes.
|
GridClientCompute |
GridClientCompute.projection(GridClientPredicate<? super GridClientNode> filter)
Creates a projection that will communicate only with nodes that are accepted by the passed filter.
|
GridClientCompute |
GridClientCompute.projection(GridClientPredicate<? super GridClientNode> filter,
GridClientLoadBalancer balancer)
Creates a projection that will communicate only with nodes that are accepted by the passed filter.
|
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
GridClientRandomBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Picks up a random node from a collection.
|
GridClientNode |
GridClientLoadBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Gets next node for executing client command.
|
GridClientNode |
GridClientRoundRobinBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Gets next node for executing client command.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Collection<GridClientNode> |
GridClientBalancerAdapter.selectDirectNodes(Collection<? extends GridClientNode> nodes)
Returns only directly available nodes from given collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GridClientRoundRobinBalancer.onNodeAdded(GridClientNode node)
Callback for new nodes joining the remote grid.
|
void |
GridClientRoundRobinBalancer.onNodeRemoved(GridClientNode node)
Callback for nodes leaving the remote grid.
|
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
GridClientRandomBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Picks up a random node from a collection.
|
GridClientNode |
GridClientLoadBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Gets next node for executing client command.
|
GridClientNode |
GridClientRoundRobinBalancer.balancedNode(Collection<? extends GridClientNode> nodes)
Gets next node for executing client command.
|
protected static Collection<GridClientNode> |
GridClientBalancerAdapter.selectDirectNodes(Collection<? extends GridClientNode> nodes)
Returns only directly available nodes from given collection.
|