java.io.Serializablepublic interface NodeMetrics
extends java.io.Serializable
| Modifier and Type | Method | Description |
|---|---|---|
int |
getAvLatencyMs() |
Returns the trailing average latency (in ms) over all requests made to
this node.
|
java.lang.String |
getDataCenterName() |
Deprecated.
replaced by
getZoneName() |
long |
getFailedRequestCount() |
Returns the number of requests that were tried at this node but did not
result in a successful response.
|
int |
getMaxActiveRequestCount() |
Returns the number of requests that were concurrently active for this
node at this KVS client.
|
java.lang.String |
getNodeName() |
Returns the internal name associated with the node.
|
long |
getRequestCount() |
Returns the total number of requests processed by the node.
|
java.lang.String |
getZoneName() |
Returns the zone that hosts the node.
|
boolean |
isActive() |
Returns true is the node is currently active, that is, it's reachable
and can service requests.
|
boolean |
isMaster() |
Returns true if the node is currently a master.
|
java.lang.String getNodeName()
@Deprecated java.lang.String getDataCenterName()
getZoneName()java.lang.String getZoneName()
boolean isActive()
boolean isMaster()
int getMaxActiveRequestCount()
long getRequestCount()
long getFailedRequestCount()
int getAvLatencyMs()
Note that since this is a trailing average it's not cleared when the
statistics are cleared via the KVStore.getStats(boolean) method.
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.