public class NodeUsage extends BaseNodeResponse implements ToXContentFragment
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
NodeUsage(DiscoveryNode node,
long timestamp,
long sinceTime,
java.util.Map<java.lang.String,java.lang.Long> restUsage) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Long> |
getRestUsage() |
long |
getSinceTime() |
long |
getTimestamp() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static NodeUsage |
readNodeStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getNoderemoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic NodeUsage(DiscoveryNode node, long timestamp, long sinceTime, java.util.Map<java.lang.String,java.lang.Long> restUsage)
node - the node these statistics were collected fromtimestamp - the timestamp for when these statistics were collectedsinceTime - the timestamp for when the collection of these statistics
startedrestUsage - a map containing the counts of the number of times each REST
endpoint has been calledpublic static NodeUsage readNodeStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic long getTimestamp()
public long getSinceTime()
public java.util.Map<java.lang.String,java.lang.Long> getRestUsage()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BaseNodeResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class BaseNodeResponsejava.io.IOException