Writeable, ToXContent, ToXContentFragmentpublic class AdaptiveSelectionStats extends java.lang.Object implements Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Constructor | Description |
|---|---|
AdaptiveSelectionStats(java.util.Map<java.lang.String,java.lang.Long> clientConnections,
java.util.Map<java.lang.String,ResponseCollectorService.ComputedNodeStats> nodeComputedStats) |
|
AdaptiveSelectionStats(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,ResponseCollectorService.ComputedNodeStats> |
getComputedStats() |
Returns a map of node id to the computed stats
|
java.util.Map<java.lang.String,java.lang.Long> |
getOutgoingConnections() |
Returns a map of node id to the outgoing search requests to that node
|
java.util.Map<java.lang.String,java.lang.Double> |
getRanks() |
Returns a map of node id to the ranking of the nodes based on the adaptive replica formula
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic AdaptiveSelectionStats(java.util.Map<java.lang.String,java.lang.Long> clientConnections,
java.util.Map<java.lang.String,ResponseCollectorService.ComputedNodeStats> nodeComputedStats)
public AdaptiveSelectionStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Long> getOutgoingConnections()
public java.util.Map<java.lang.String,ResponseCollectorService.ComputedNodeStats> getComputedStats()
public java.util.Map<java.lang.String,java.lang.Double> getRanks()