Interface GridClientNode
-
- All Known Implementing Classes:
GridClientNodeImpl
public interface GridClientNodeDescriptor of remote grid node. UseGridClientCompute.nodes()to get a full view over remote grid nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tattribute(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.Map<String,GridClientCacheMode>caches()Gets all configured caches and their types on remote node.booleanconnectable()Indicates whether client can establish direct connection with this node.ObjectconsistentId()Gets consistent globally unique node ID.booleanisClient()Whether this node is client (seeIgniteConfiguration.isClientMode()).GridClientNodeMetricsmetrics()Gets various dynamic metrics of remote node.UUIDnodeId()Gets ID of a remote node.longorder()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.inttcpPort()Gets client TCP port of remote node.
-
-
-
Method Detail
-
nodeId
UUID nodeId()
Gets ID of a remote node.- Returns:
- Node ID.
-
consistentId
Object consistentId()
Gets consistent globally unique node ID. UnlikenodeId()method, this method returns consistent node ID which survives node restarts.- Returns:
- Consistent globally unique node ID.
-
tcpAddresses
List<String> tcpAddresses()
Gets list of REST TCP server addresses of remote node.- Returns:
- REST TCP server addresses.
-
tcpHostNames
List<String> tcpHostNames()
Gets list of REST TCP server host names of remote node.- Returns:
- REST TCP server host names.
-
tcpPort
int tcpPort()
Gets client TCP port of remote node.- Returns:
- Remote tcp port.
-
attributes
Map<String,Object> attributes()
Gets all attributes of remote node. Note that all system and environment properties are automatically includes in node attributes. User can also attach custom attributes and then use them to further filter remote nodes into virtual subgrids for task execution.- Returns:
- All node attributes.
-
attribute
@Nullable <T> T attribute(String name)
Gets specific attribute of remote node.- Parameters:
name- Attribute name.- Returns:
- Attribute value.
- See Also:
attributes()
-
metrics
GridClientNodeMetrics metrics()
Gets various dynamic metrics of remote node.- Returns:
- Metrics of remote node.
-
caches
Map<String,GridClientCacheMode> caches()
Gets all configured caches and their types on remote node.- Returns:
- Map in which key is a configured cache name on the node, value is mode of configured cache.
-
availableAddresses
Collection<InetSocketAddress> availableAddresses(GridClientProtocol proto, boolean filterResolved)
Gets collection of addresses on which REST binary protocol is bound.- Parameters:
proto- Protocol for which addresses are obtained.filterResolved- Whether to filter resolved addresses (InetSocketAddress.isUnresolved()returnsFalse) or not.- Returns:
- List of addresses.
-
connectable
boolean connectable()
Indicates whether client can establish direct connection with this node. So it is guaranteed that that any request will take only one network 'hop' before it will be processed by a Grid node.- Returns:
trueif node can be directly connected,falseif request may be passed through a router.
-
order
long order()
Node order within grid topology.- Returns:
- Node startup order.
-
isClient
boolean isClient()
Whether this node is client (seeIgniteConfiguration.isClientMode()).- Returns:
True if client.- See Also:
IgniteConfiguration.isClientMode()
-
-