Class MLDeployModelRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.ml.common.transport.MLTaskRequest
org.opensearch.ml.common.transport.deploy.MLDeployModelRequest
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.tasks.TaskAwareRequest
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
org.opensearch.transport.TransportRequest.EmptyNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
Fields inherited from class org.opensearch.ml.common.transport.MLTaskRequest
dispatchTask, requestID -
Constructor Summary
ConstructorsConstructorDescriptionMLDeployModelRequest(String modelId, boolean async) MLDeployModelRequest(String modelId, String[] modelNodeIds, boolean async, boolean dispatchTask, boolean isUserInitiatedDeployRequest) MLDeployModelRequest(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static MLDeployModelRequestfromActionRequest(org.opensearch.action.ActionRequest actionRequest) String[]booleanisAsync()booleanstatic MLDeployModelRequesttoString()org.opensearch.action.ActionRequestValidationExceptionvalidate()voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.ml.common.transport.MLTaskRequest
getRequestID, isDispatchTask, setDispatchTaskMethods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
MLDeployModelRequest
-
MLDeployModelRequest
-
MLDeployModelRequest
- Throws:
IOException
-
-
Method Details
-
validate
public org.opensearch.action.ActionRequestValidationException validate()- Overrides:
validatein classMLTaskRequest
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classMLTaskRequest- Throws:
IOException
-
parse
public static MLDeployModelRequest parse(org.opensearch.core.xcontent.XContentParser parser, String modelId) throws IOException - Throws:
IOException
-
fromActionRequest
public static MLDeployModelRequest fromActionRequest(org.opensearch.action.ActionRequest actionRequest) -
builder
-
getModelId
-
getModelNodeIds
-
isAsync
public boolean isAsync() -
isUserInitiatedDeployRequest
public boolean isUserInitiatedDeployRequest() -
toString
-