Module org.elasticsearch.xcore
Class InferTrainedModelDeploymentAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.UntypedActionRequest
org.elasticsearch.action.support.tasks.BaseTasksRequest<InferTrainedModelDeploymentAction.Request>
org.elasticsearch.xpack.core.ml.action.InferTrainedModelDeploymentAction.Request
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest,TransportRequest
- Enclosing class:
InferTrainedModelDeploymentAction
public static class InferTrainedModelDeploymentAction.Request
extends BaseTasksRequest<InferTrainedModelDeploymentAction.Request>
Request for inference against the deployment.
The task gets routed to a node that indicates its local model assignment is started
For indicating timeout, the caller should call `setInferenceTimeout` and not the base class `setTimeout` method
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TimeValuestatic final ParseFieldstatic final ParseFieldFields inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
ALL_ACTIONS, ALL_NODESFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanforDocs(String id, InferenceConfigUpdate update, List<Map<String, Object>> docs, TimeValue inferenceTimeout) forTextInput(String id, InferenceConfigUpdate update, List<String> textInput, TimeValue inferenceTimeout) getDocs()getId()This is always null as we want the inference call to handle the timeout, not the tasks frameworkinthashCode()booleanbooleanbooleanvoidsetChunkResults(boolean chunkResults) voidsetHighPriority(boolean highPriority) voidvoidsetPrefixType(TrainedModelPrefixStrings.PrefixType prefixType) validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
canMatchAction, copyFieldsFrom, getActions, getNodes, getParentTaskId, getTargetParentTaskId, getTargetTaskId, getTaskId, matchesActionAndParent, setActions, setNodes, setParentTaskId, setTargetParentTaskId, setTargetTaskId, setTaskId, setTimeoutMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
copyFieldsFrom, getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
DOCS
-
TIMEOUT
-
DEFAULT_TIMEOUT
-
-
Constructor Details
-
Request
- Throws:
IOException
-
-
Method Details
-
forDocs
public static InferTrainedModelDeploymentAction.Request forDocs(String id, InferenceConfigUpdate update, List<Map<String, Object>> docs, TimeValue inferenceTimeout) -
forTextInput
public static InferTrainedModelDeploymentAction.Request forTextInput(String id, InferenceConfigUpdate update, List<String> textInput, TimeValue inferenceTimeout) -
getId
-
getDocs
-
getTextInput
-
getUpdate
-
getInferenceTimeout
-
setId
-
getTimeout
This is always null as we want the inference call to handle the timeout, not the tasks framework- Overrides:
getTimeoutin classBaseTasksRequest<InferTrainedModelDeploymentAction.Request>- Returns:
- null
-
setHighPriority
public void setHighPriority(boolean highPriority) -
isHighPriority
public boolean isHighPriority() -
setPrefixType
-
getPrefixType
-
isChunkResults
public boolean isChunkResults() -
setChunkResults
public void setChunkResults(boolean chunkResults) -
validate
- Overrides:
validatein classBaseTasksRequest<InferTrainedModelDeploymentAction.Request>
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseTasksRequest<InferTrainedModelDeploymentAction.Request>- Throws:
IOException
-
match
- Overrides:
matchin classBaseTasksRequest<InferTrainedModelDeploymentAction.Request>
-
equals
-
hashCode
public int hashCode() -
createTask
-