public class ShardStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ShardStats(ShardRouting routing,
ShardPath shardPath,
CommonStats commonStats,
CommitStats commitStats) |
| Modifier and Type | Method and Description |
|---|---|
CommitStats |
getCommitStats() |
String |
getDataPath() |
ShardRouting |
getShardRouting()
The shard routing information (cluster wide shard state).
|
String |
getStatePath() |
CommonStats |
getStats() |
boolean |
isCustomDataPath() |
void |
readFrom(StreamInput in) |
static ShardStats |
readShardStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public ShardStats(ShardRouting routing, ShardPath shardPath, CommonStats commonStats, CommitStats commitStats)
public ShardRouting getShardRouting()
public CommonStats getStats()
public CommitStats getCommitStats()
public String getDataPath()
public String getStatePath()
public boolean isCustomDataPath()
public static ShardStats readShardStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.