public class GridClientNodeImpl extends Object implements GridClientNode
| Modifier and Type | Class and Description |
|---|---|
static class |
GridClientNodeImpl.Builder
Builder for instances of this class.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
attribute(String name)
Gets specific attribute of remote node.
|
Map<String,Object> |
attributes()
Gets all attributes of remote node.
|
Collection<InetSocketAddress> |
availableAddresses(GridClientProtocol proto,
boolean filterResolved)
Gets collection of addresses on which REST binary protocol is bound.
|
static GridClientNodeImpl.Builder |
builder()
Creates and returns a builder for a new instance
of this class.
|
static GridClientNodeImpl.Builder |
builder(GridClientNode from,
boolean skipAttrs,
boolean skipMetrics)
Creates and returns a builder for a new instance
of this class, copying data from an input instance.
|
Map<String,GridClientCacheMode> |
caches()
Gets all configured caches and their types on remote node.
|
boolean |
connectable()
Indicates whether client can establish direct connection with this node.
|
Object |
consistentId()
Gets consistent globally unique node ID.
|
boolean |
equals(Object o) |
int |
hashCode() |
GridClientNodeMetrics |
metrics()
Gets various dynamic metrics of remote node.
|
UUID |
nodeId()
Gets ID of a remote node.
|
List<String> |
tcpAddresses()
Gets list of REST TCP server addresses of remote node.
|
List<String> |
tcpHostNames()
Gets list of REST TCP server host names of remote node.
|
int |
tcpPort()
Gets client TCP port of remote node.
|
String |
toString() |
public static GridClientNodeImpl.Builder builder()
public static GridClientNodeImpl.Builder builder(GridClientNode from, boolean skipAttrs, boolean skipMetrics)
from - Instance to copy data from.skipAttrs - Whether to skip attributes.skipMetrics - Whether to skip metrics.public UUID nodeId()
nodeId in interface GridClientNodepublic Object consistentId()
GridClientNode.nodeId() method,
this method returns consistent node ID which survives node restarts.consistentId in interface GridClientNodepublic List<String> tcpAddresses()
tcpAddresses in interface GridClientNodepublic List<String> tcpHostNames()
tcpHostNames in interface GridClientNodepublic int tcpPort()
tcpPort in interface GridClientNodepublic Map<String,Object> attributes()
attributes in interface GridClientNode@Nullable public <T> T attribute(String name)
attribute in interface GridClientNodename - Attribute name.GridClientNode.attributes()public GridClientNodeMetrics metrics()
metrics in interface GridClientNodepublic Map<String,GridClientCacheMode> caches()
caches in interface GridClientNodepublic Collection<InetSocketAddress> availableAddresses(GridClientProtocol proto, boolean filterResolved)
availableAddresses in interface GridClientNodeproto - Protocol for which addresses are obtained.filterResolved - Whether to filter resolved addresses ( InetSocketAddress.isUnresolved()
returns False ) or not.public boolean connectable()
connectable in interface GridClientNodetrue if node can be directly connected,
false if request may be passed through a router.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017