java.lang.Object
org.elasticsearch.cluster.metadata.IndexWriteLoad
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexWriteLoad.Builderbuilder(int numShards) booleanstatic IndexWriteLoadfromXContent(XContentParser parser) getPeakWriteLoadForShard(int shardId) getRecentWriteLoadForShard(int shardId) getUptimeInMillisForShard(int shardId) getWriteLoadForShard(int shardId) inthashCode()inttoXContent(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
-
Field Details
-
SHARDS_WRITE_LOAD_FIELD
-
SHARDS_UPTIME_IN_MILLIS
-
SHARDS_RECENT_WRITE_LOAD_FIELD
-
SHARDS_PEAK_WRITE_LOAD_FIELD
-
-
Constructor Details
-
IndexWriteLoad
- Throws:
IOException
-
-
Method Details
-
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
-
fromXContent
- Throws:
IOException
-
getWriteLoadForShard
-
getRecentWriteLoadForShard
-
getPeakWriteLoadForShard
-
getUptimeInMillisForShard
-
numberOfShards
public int numberOfShards() -
equals
-
hashCode
public int hashCode() -
builder
-