public class ShardStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.