Package org.elasticsearch.node
Class ResponseCollectorService.ComputedNodeStats
java.lang.Object
org.elasticsearch.node.ResponseCollectorService.ComputedNodeStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ResponseCollectorService
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
Modifier and TypeFieldDescriptionint
double
double
-
Constructor Summary
ConstructorDescriptionComputedNodeStats(String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
Method Summary
Modifier and TypeMethodDescriptiondouble
rank(long outstandingRequests)
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
nodeId
-
queueSize
public final int queueSize -
responseTime
public final double responseTime -
serviceTime
public final double serviceTime
-
-
Constructor Details
-
ComputedNodeStats
public ComputedNodeStats(String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
rank
public double rank(long outstandingRequests) -
toString
-