Module org.elasticsearch.xcore
Class AssignmentStats
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.assignment.AssignmentStats
- 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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAssignmentStats(String deploymentId, String modelId, Integer threadsPerAllocation, Integer numberOfAllocations, AdaptiveAllocationsSettings adaptiveAllocationsSettings, Integer queueCapacity, ByteSizeValue cacheSize, Instant startTime, List<AssignmentStats.NodeStats> nodeStats, Priority priority) AssignmentStats(AssignmentStats other) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetState()inthashCode()setAllocationStatus(AllocationStatus allocationStatus) setNodeStats(List<AssignmentStats.NodeStats> nodeStats) setState(AssignmentState state) 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
-
Constructor Details
-
AssignmentStats
-
AssignmentStats
public AssignmentStats(String deploymentId, String modelId, @Nullable Integer threadsPerAllocation, @Nullable Integer numberOfAllocations, @Nullable AdaptiveAllocationsSettings adaptiveAllocationsSettings, @Nullable Integer queueCapacity, @Nullable ByteSizeValue cacheSize, Instant startTime, List<AssignmentStats.NodeStats> nodeStats, Priority priority) -
AssignmentStats
- Throws:
IOException
-
-
Method Details
-
getDeploymentId
-
getModelId
-
getThreadsPerAllocation
-
getNumberOfAllocations
-
getAdaptiveAllocationsSettings
-
getQueueCapacity
-
getCacheSize
-
getStartTime
-
getNodeStats
-
getState
-
setNodeStats
-
setState
-
setAllocationStatus
-
getReason
-
setReason
-
getPriority
-
getOverallInferenceStats
- Returns:
- The overall inference stats for the assignment
-
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
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-