Module org.elasticsearch.xcore
Class MemoryUsage
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.stats.common.MemoryUsage
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
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 ConstructingObjectParser<MemoryUsage, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<MemoryUsage, Void> static final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMemoryUsage(String jobId) Creates a zero usage objectMemoryUsage(String jobId, Instant timestamp, long peakUsageBytes, MemoryUsage.Status status, Long memoryReestimateBytes) -
Method Summary
Modifier and TypeMethodDescriptiondocumentId(String _jobId) static StringdocumentIdPrefix(String jobId) booleanlonginthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TYPE_VALUE
- See Also:
-
PEAK_USAGE_BYTES
-
STATUS
-
MEMORY_REESTIMATE_BYTES
-
STRICT_PARSER
-
LENIENT_PARSER
-
-
Constructor Details
-
MemoryUsage
Creates a zero usage object -
MemoryUsage
-
MemoryUsage
- Throws:
IOException
-
-
Method Details
-
getPeakUsageBytes
public long getPeakUsageBytes() -
getStatus
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
documentId
-
documentIdPrefix
-