Module org.elasticsearch.xcore
Class TrainedModelAssignmentMetadata
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.assignment.TrainedModelAssignmentMetadata
- All Implemented Interfaces:
Diffable<Metadata.Custom>,Metadata.Custom,NamedDiffable<Metadata.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrainedModelAssignmentMetadata(Map<String, TrainedModelAssignment> modelRoutingEntries) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TrainedModelAssignment> assignmentForDeploymentId(ClusterState clusterState, String deploymentId) static List<TrainedModelAssignment> assignmentsForModelId(ClusterState clusterState, String modelId) builder(ClusterState clusterState) context()diff(Metadata.Custom previousState) booleanfromState(ClusterState clusterState) fromStream(StreamInput input) fromStreamOld(StreamInput input) fromXContent(org.elasticsearch.xcontent.XContentParser parser) getDeploymentAssignment(String deploymentId) getDeploymentsUsingModel(String modelId) booleanhasDeployment(String deploymentId) inthashCode()booleanbooleanisAssigned(String deploymentId) booleanmodelIsDeployed(String modelId) static NamedDiff<Metadata.Custom> static NamedDiff<Metadata.Custom> toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.Custom
isRestorable
-
Field Details
-
DEPRECATED_NAME
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
TrainedModelAssignmentMetadata
-
-
Method Details
-
fromXContent
public static TrainedModelAssignmentMetadata fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
fromStream
- Throws:
IOException
-
fromStreamOld
- Throws:
IOException
-
readDiffFrom
- Throws:
IOException
-
readDiffFromOld
- Throws:
IOException
-
builder
-
fromState
-
assignmentsForModelId
public static List<TrainedModelAssignment> assignmentsForModelId(ClusterState clusterState, String modelId) -
assignmentForDeploymentId
public static Optional<TrainedModelAssignment> assignmentForDeploymentId(ClusterState clusterState, String deploymentId) -
getDeploymentAssignment
-
isAssigned
-
modelIsDeployed
-
getDeploymentsUsingModel
-
allAssignments
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
diff
- Specified by:
diffin interfaceDiffable<Metadata.Custom>
-
context
- Specified by:
contextin interfaceMetadata.Custom
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
hasOutdatedAssignments
public boolean hasOutdatedAssignments() -
hasDeployment
-