Module org.elasticsearch.xcore
Class ModelSizeStats
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelSizeStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Provide access to the C++ model size stats for the Java process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere will we get the memory requirement from when assigning this job to a node? There are three possibilities: 1.static classstatic enumThe status of the memory monitored by the ResourceMonitor.Nested 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 ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<ModelSizeStats.Builder, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldField Namesstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final StringResult typestatic final ConstructingObjectParser<ModelSizeStats.Builder, Void> static final ParseFieldstatic 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 StringdocumentIdPrefix(String jobId) doXContentBody(XContentBuilder builder) booleanCompare all the fields.longlonglonglonglonggetId()getJobId()The wall clock time at the point when this instance was created.longlongThe timestamp of the last processed record when this instance was created.longlonglonglonginthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULT_TYPE_VALUE
Result type- See Also:
-
RESULT_TYPE_FIELD
-
MODEL_BYTES_FIELD
Field Names -
PEAK_MODEL_BYTES_FIELD
-
MODEL_BYTES_EXCEEDED_FIELD
-
MODEL_BYTES_MEMORY_LIMIT_FIELD
-
TOTAL_BY_FIELD_COUNT_FIELD
-
TOTAL_OVER_FIELD_COUNT_FIELD
-
TOTAL_PARTITION_FIELD_COUNT_FIELD
-
BUCKET_ALLOCATION_FAILURES_COUNT_FIELD
-
MEMORY_STATUS_FIELD
-
ASSIGNMENT_MEMORY_BASIS_FIELD
-
OUTPUT_MEMORY_ALLOCATOR_BYTES_FIELD
-
CATEGORIZED_DOC_COUNT_FIELD
-
TOTAL_CATEGORY_COUNT_FIELD
-
FREQUENT_CATEGORY_COUNT_FIELD
-
RARE_CATEGORY_COUNT_FIELD
-
DEAD_CATEGORY_COUNT_FIELD
-
FAILED_CATEGORY_COUNT_FIELD
-
CATEGORIZATION_STATUS_FIELD
-
LOG_TIME_FIELD
-
TIMESTAMP_FIELD
-
STRICT_PARSER
-
LENIENT_PARSER
-
-
Constructor Details
-
ModelSizeStats
- Throws:
IOException
-
-
Method Details
-
getId
-
documentIdPrefix
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
doXContentBody
- Throws:
IOException
-
getJobId
-
getModelBytes
public long getModelBytes() -
getPeakModelBytes
-
getModelBytesExceeded
-
getModelBytesMemoryLimit
-
getTotalByFieldCount
public long getTotalByFieldCount() -
getTotalPartitionFieldCount
public long getTotalPartitionFieldCount() -
getTotalOverFieldCount
public long getTotalOverFieldCount() -
getBucketAllocationFailuresCount
public long getBucketAllocationFailuresCount() -
getMemoryStatus
-
getAssignmentMemoryBasis
-
getOutputMemmoryAllocatorBytes
-
getCategorizedDocCount
public long getCategorizedDocCount() -
getTotalCategoryCount
public long getTotalCategoryCount() -
getFrequentCategoryCount
public long getFrequentCategoryCount() -
getRareCategoryCount
public long getRareCategoryCount() -
getDeadCategoryCount
public long getDeadCategoryCount() -
getFailedCategoryCount
public long getFailedCategoryCount() -
getCategorizationStatus
-
getTimestamp
The timestamp of the last processed record when this instance was created.- Returns:
- The record time
-
getLogTime
The wall clock time at the point when this instance was created.- Returns:
- The wall clock time
-
hashCode
public int hashCode() -
equals
Compare all the fields.
-