java.lang.Object
org.elasticsearch.index.store.StoreMetrics
- All Implemented Interfaces:
DirectoryMetrics.PluggableMetrics<StoreMetrics>,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBytesRead(long amount) copy()delta()A delta object that measures the delta of the metric between invoking the delta method and the returned supplier.longtoXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.store.DirectoryMetrics.PluggableMetrics
castMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NOOP_HOLDER
-
-
Constructor Details
-
StoreMetrics
public StoreMetrics(long bytesRead) -
StoreMetrics
public StoreMetrics()
-
-
Method Details
-
getBytesRead
public long getBytesRead() -
copy
- Specified by:
copyin interfaceDirectoryMetrics.PluggableMetrics<StoreMetrics>- Returns:
- copy of the metric object
-
delta
Description copied from interface:DirectoryMetrics.PluggableMetricsA delta object that measures the delta of the metric between invoking the delta method and the returned supplier.- Specified by:
deltain interfaceDirectoryMetrics.PluggableMetrics<StoreMetrics>- Returns:
- supplier of the delta.
-
addBytesRead
public void addBytesRead(long amount) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-