Streamable
, Writeable
, ToXContent
, ToXContentFragment
public class ShardStats extends java.lang.Object implements Streamable, Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
ShardStats(ShardRouting routing,
ShardPath shardPath,
CommonStats commonStats,
CommitStats commitStats,
SeqNoStats seqNoStats) |
Modifier and Type | Method | Description |
---|---|---|
CommitStats |
getCommitStats() |
|
java.lang.String |
getDataPath() |
|
SeqNoStats |
getSeqNoStats() |
|
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, SeqNoStats seqNoStats)
public ShardRouting getShardRouting()
public CommonStats getStats()
public CommitStats getCommitStats()
@Nullable public SeqNoStats getSeqNoStats()
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