public class ShardStats extends BroadcastShardOperationResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ShardStats(IndexShard indexShard,
ShardRouting shardRouting,
CommonStatsFlags flags) |
Modifier and Type | Method and Description |
---|---|
ShardRouting |
getShardRouting()
The shard routing information (cluster wide shard state).
|
CommonStats |
getStats() |
void |
readFrom(StreamInput in) |
static ShardStats |
readShardStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getIndex, getShardId
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public ShardStats(IndexShard indexShard, ShardRouting shardRouting, CommonStatsFlags flags)
public ShardRouting getShardRouting()
public CommonStats getStats()
public static ShardStats readShardStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastShardOperationResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastShardOperationResponse
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.