Node Class

Server node representation. This class manages server node connections and health status.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
public class Node
Inheritance
Object    Node
Derived

Constructors

Node Initialize server node with connection parameters.

Properties

Active Return whether node is currently active.
Cluster Aerospike cluster which contains this node
HasBatchAny 
HasPartitionQuery 
HasQueryShow 
Host Return server node IP address and port.
Name Return server node name.
NodeAddress This node's network address
SessionToken 

Methods

AddError Increment command error count. If the error is retryable, multiple errors per command may occur.
AddLatency Add elapsed time in nanoseconds to latency buckets corresponding to latency type.
AddTimeout Increment command timeout count. If the timeout is retryable (ie socketTimeout), multiple timeouts per command may occur.
BalanceConnections 
Close Close all server node socket connections.
CloseConnection Close pooled connection.
CloseConnectionOnError Close pooled connection on error.
CreateMinConnections 
DisableMetrics 
EnableMetrics 
Equals Return if node names are equal.
(Overrides Object.Equals(Object))
ErrorRateWithinLimit 
GetConnection(Int32) Get a socket connection from connection pool to the server node.
GetConnection(Int32, Int32) Get a socket connection from connection pool to the server node.
GetConnectionStats 
GetErrorCount Return command error count. The value is cumulative and not reset per metrics interval.
GetHashCode Get node name hash code.
(Overrides Object.GetHashCode())
GetMetrics 
GetTimeoutCount Return command timeout count. The value is cumulative and not reset per metrics interval.
HasRack Return if this node has the same rack as the client for the given namespace.
IncrErrorRate 
PutConnection Put connection back into connection pool.
Refresh Request current status from server node.
ResetErrorRate 
SignalLogin 
ToString Return node name, host address and cluster id in string format.
(Overrides Object.ToString())
ValidateErrorCount 

Fields

HAS_BATCH_ANY 
HAS_PARTITION_QUERY 
HAS_PARTITION_SCAN 
HAS_QUERY_SHOW 
PARTITIONS Number of partitions for each namespace.

See Also