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.1.0+5933a5a54dcb0179652c01f6f4d6ef13e789846e
C#
public class Node : IDisposable
Inheritance
Object    Node
Derived
Implements
IDisposable

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

AddBytesIn Add to the count of bytes received from the node.
AddBytesOut Add to the count of bytes sent to the node.
AddError Increment command error count. If the error is retryable, multiple errors per command may occur.
AddKeyBusy Increment the key busy counter.
AddLatency Add elapsed time in milliseconds 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.
AreMetricsEnabled Return metrics enablement status
BalanceConnections 
Close Close all server node socket connections.
CloseConnection Close pooled connection.
CloseConnectionOnError Close pooled connection on error.
CreateMinConnections 
DisableMetrics 
DisposeReleases all resources used by the Node
EnableMetrics 
Equals Return if node names are equal.
(Overrides ObjectEquals(Object))
ErrorRateWithinLimit 
GetBytesInByNS Return count of bytes in by namespace. The value is cumulative and not reset per metrics interval.
GetBytesInTotal Return count of total bytes in. The value is cumulative and not reset per metrics interval.
GetBytesOutByNS Return count of bytes out by namespace. The value is cumulative and not reset per metrics interval.
GetBytesOutTotal Return count of total bytes out. The value is cumulative and not reset per metrics interval.
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.
GetErrorCountByNS Return transaction error count by namespace. The value is cumulative and not reset per metrics interval.
GetHashCode Get node name hash code.
(Overrides ObjectGetHashCode)
GetKeyBusyCount Return key busy count. The value is cumulative and not reset per metrics interval.
GetKeyBusyCountByNS Return key busy error count for a given namespace. The value is cumulative and not reset per metrics interval.
GetMetrics 
GetTimeoutCount Return command timeout count. The value is cumulative and not reset per metrics interval.
GetTimeoutCountbyNS Return transaction timeout count for a given namespace. 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 ObjectToString)
ValidateErrorCount 

Fields

See Also