public class ShardStats extends java.lang.Object implements Streamable, Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
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() |
java.lang.String |
getDataPath() |
ShardRouting |
getShardRouting()
The shard routing information (cluster wide shard state).
|
java.lang.String |
getStatePath() |
CommonStats |
getStats() |
boolean |
isCustomDataPath() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static ShardStats |
readShardStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public ShardStats(ShardRouting routing, ShardPath shardPath, CommonStats commonStats, CommitStats commitStats)
public ShardRouting getShardRouting()
public CommonStats getStats()
public CommitStats getCommitStats()
public java.lang.String getDataPath()
public java.lang.String getStatePath()
public boolean isCustomDataPath()
public static ShardStats readShardStats(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException