Package org.elasticsearch.node
Class ResponseCollectorService.ComputedNodeStats
java.lang.Object
org.elasticsearch.node.ResponseCollectorService.ComputedNodeStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ResponseCollectorService
public static class ResponseCollectorService.ComputedNodeStats extends java.lang.Object implements Writeable
Struct-like class encapsulating a point-in-time snapshot of a particular
node's statistics. This includes the EWMA of queue size, response time,
and service time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
nodeId
int
queueSize
double
responseTime
double
serviceTime
-
Constructor Summary
Constructors Constructor Description ComputedNodeStats(java.lang.String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
Method Summary
Modifier and Type Method Description double
rank(long outstandingRequests)
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
nodeId
public final java.lang.String nodeId -
queueSize
public final int queueSize -
responseTime
public final double responseTime -
serviceTime
public final double serviceTime
-
-
Constructor Details
-
ComputedNodeStats
public ComputedNodeStats(java.lang.String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
rank
public double rank(long outstandingRequests) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-