Module org.elasticsearch.server
Class ShardStats
java.lang.Object
org.elasticsearch.action.admin.indices.stats.ShardStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionShardStats(ShardRouting shardRouting, CommonStats commonStats, CommitStats commitStats, SeqNoStats seqNoStats, RetentionLeaseStats retentionLeaseStats, String dataPath, String statePath, boolean isCustomDataPath) ShardStats(ShardRouting shardRouting, ShardPath shardPath, CommonStats commonStats, CommitStats commitStats, SeqNoStats seqNoStats, RetentionLeaseStats retentionLeaseStats) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the current retention lease stats.The shard routing information (cluster wide shard state).getStats()inthashCode()booleantoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
ShardStats
- Throws:
IOException
-
ShardStats
public ShardStats(ShardRouting shardRouting, ShardPath shardPath, CommonStats commonStats, CommitStats commitStats, SeqNoStats seqNoStats, RetentionLeaseStats retentionLeaseStats) -
ShardStats
public ShardStats(ShardRouting shardRouting, CommonStats commonStats, CommitStats commitStats, SeqNoStats seqNoStats, RetentionLeaseStats retentionLeaseStats, String dataPath, String statePath, boolean isCustomDataPath)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getShardRouting
The shard routing information (cluster wide shard state). -
getStats
-
getCommitStats
-
getSeqNoStats
-
getRetentionLeaseStats
Gets the current retention lease stats.- Returns:
- the current retention lease stats
-
getDataPath
-
getStatePath
-
isCustomDataPath
public boolean isCustomDataPath() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-