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() |
boolean |
isClient()
Whether this node is client (see
IgniteConfiguration.isClientMode()). |
boolean |
isDaemon()
Tests whether or not this node is a daemon (see
IgniteConfiguration.isDaemon()). |
GridClientNodeMetrics |
metrics()
Gets various dynamic metrics of remote node.
|
UUID |
nodeId()
Gets ID of a remote node.
|
long |
order()
Node order within grid topology.
|
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 long order()
order in interface GridClientNodepublic boolean connectable()
connectable in interface GridClientNodetrue if node can be directly connected,
false if request may be passed through a router.public boolean isClient()
IgniteConfiguration.isClientMode()).isClient in interface GridClientNodeTrue if client.IgniteConfiguration.isClientMode()public boolean isDaemon()
IgniteConfiguration.isDaemon()).isDaemon in interface GridClientNodeTrue if this node is a daemon, false otherwise.IgniteConfiguration.isDaemon()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021