Module org.elasticsearch.xcore
Class NodeDataTiersUsage.UsageStats
java.lang.Object
org.elasticsearch.xpack.core.datatiers.NodeDataTiersUsage.UsageStats
- All Implemented Interfaces:
Writeable
- Enclosing class:
NodeDataTiersUsage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionUsageStats(List<Long> primaryShardSizes, int totalShardCount, long docCount, long totalSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrimaryShardSize(long primaryShardSize) longintlongvoidincrementDocCount(long docCount) voidincrementTotalShardCount(int totalShardCount) voidincrementTotalSize(long totalSize) voidwriteTo(StreamOutput out)
-
Constructor Details
-
UsageStats
public UsageStats() -
UsageStats
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
addPrimaryShardSize
public void addPrimaryShardSize(long primaryShardSize) -
incrementTotalSize
public void incrementTotalSize(long totalSize) -
incrementDocCount
public void incrementDocCount(long docCount) -
incrementTotalShardCount
public void incrementTotalShardCount(int totalShardCount) -
getPrimaryShardSizes
-
getTotalShardCount
public int getTotalShardCount() -
getDocCount
public long getDocCount() -
getTotalSize
public long getTotalSize()
-