Module org.elasticsearch.xcore
Class MemoryUsage
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.stats.common.MemoryUsage
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ConstructingObjectParser<MemoryUsage, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField PEAK_USAGE_BYTES -
STATUS
public static final org.elasticsearch.xcontent.ParseField STATUS -
MEMORY_REESTIMATE_BYTES
public static final org.elasticsearch.xcontent.ParseField MEMORY_REESTIMATE_BYTES -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<MemoryUsage,Void> STRICT_PARSER -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<MemoryUsage,Void> LENIENT_PARSER
-
-
Constructor Details
-
MemoryUsage
Creates a zero usage object -
MemoryUsage
public MemoryUsage(String jobId, Instant timestamp, long peakUsageBytes, @Nullable MemoryUsage.Status status, @Nullable Long memoryReestimateBytes) -
MemoryUsage
- Throws:
IOException
-
-
Method Details
-
getPeakUsageBytes
public long getPeakUsageBytes() -
getStatus
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
documentId
-
documentIdPrefix
-