Interface NodeMetrics

All Superinterfaces:
Serializable

public interface NodeMetrics extends Serializable
The metrics associated with a node in the KVS.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the average latency in nanoseconds over requests made to this node.
    int
    Returns the trailing average latency (in ms) over all requests made to this node.
    Deprecated.
    replaced by getZoneName()
    long
    Returns the number of requests that were tried at this node but did not result in a successful response.
    int
    Returns the number of requests that were concurrently active for this node at this KVS client.
    Returns the internal name associated with the node.
    long
    Returns the total number of requests processed by the node.
    Returns the zone that hosts the node.
    boolean
    Returns true is the node is currently active, that is, it's reachable and can service requests.
    boolean
    Returns true if the node is currently a master.
  • Method Details

    • getNodeName

      String getNodeName()
      Returns the internal name associated with the node. It's unique across the KVStore.
    • getDataCenterName

      @Deprecated String getDataCenterName()
      Deprecated.
      replaced by getZoneName()
      Returns the zone that hosts the node.
    • getZoneName

      String getZoneName()
      Returns the zone that hosts the node.
    • isActive

      boolean isActive()
      Returns true is the node is currently active, that is, it's reachable and can service requests.
    • isMaster

      boolean isMaster()
      Returns true if the node is currently a master.
    • getMaxActiveRequestCount

      int getMaxActiveRequestCount()
      Returns the number of requests that were concurrently active for this node at this KVS client.
    • getRequestCount

      long getRequestCount()
      Returns the total number of requests processed by the node.

      The stats reflects the value computed since the last time it is obtained and cleared with respect to a watcher name. See KVStore.getStats(String, boolean).

    • getFailedRequestCount

      long getFailedRequestCount()
      Returns the number of requests that were tried at this node but did not result in a successful response.

      The stats reflects the value computed since the last time it is obtained and cleared with respect to a watcher name. See KVStore.getStats(String, boolean).

    • getAvLatencyMs

      int getAvLatencyMs()
      Returns the trailing average latency (in ms) over all requests made to this node.

      Note that since this is a trailing average it's not cleared when the statistics are cleared via the KVStore.getStats(boolean) method.

    • getAverageLatencyNanos

      long getAverageLatencyNanos()
      Returns the average latency in nanoseconds over requests made to this node.

      The stats reflects the value computed since the last time it is obtained and cleared with respect to a watcher name. See KVStore.getStats(String, boolean).