public class ShardStats extends BroadcastShardOperationResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
ShardStats(IndexShard indexShard,
ShardRouting shardRouting,
CommonStatsFlags flags) |
| Modifier and Type | Method and Description |
|---|---|
CommitStats |
getCommitStats() |
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, getShardIdputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic ShardStats(IndexShard indexShard, ShardRouting shardRouting, CommonStatsFlags flags)
public ShardRouting getShardRouting()
public CommonStats getStats()
public CommitStats getCommitStats()
public static ShardStats readShardStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastShardOperationResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastShardOperationResponseIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.