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 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 StringnodeIdintqueueSizedoubleresponseTimedoubleserviceTime
-
Constructor Summary
Constructors Constructor Description ComputedNodeStats(String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublerank(long outstandingRequests)StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Field Detail
-
nodeId
public final String nodeId
-
queueSize
public final int queueSize
-
responseTime
public final double responseTime
-
serviceTime
public final double serviceTime
-
-
Constructor Detail
-
ComputedNodeStats
public ComputedNodeStats(String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
rank
public double rank(long outstandingRequests)
-
-