Class MLPredictionTaskRequest

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.prediction.MLPredictionTaskRequest
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.tasks.TaskAwareRequest

public class MLPredictionTaskRequest extends MLTaskRequest
  • Constructor Details

    • MLPredictionTaskRequest

      public MLPredictionTaskRequest(String modelId, MLInput mlInput, boolean dispatchTask, org.opensearch.commons.authuser.User user)
    • MLPredictionTaskRequest

      public MLPredictionTaskRequest(String modelId, MLInput mlInput)
    • MLPredictionTaskRequest

      public MLPredictionTaskRequest(String modelId, MLInput mlInput, org.opensearch.commons.authuser.User user)
    • MLPredictionTaskRequest

      public MLPredictionTaskRequest(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Overrides:
      writeTo in class MLTaskRequest
      Throws:
      IOException
    • validate

      public org.opensearch.action.ActionRequestValidationException validate()
      Overrides:
      validate in class MLTaskRequest
    • fromActionRequest

      public static MLPredictionTaskRequest fromActionRequest(org.opensearch.action.ActionRequest actionRequest)
    • builder

    • getModelId

      public String getModelId()
    • getMlInput

      public MLInput getMlInput()
    • getUser

      public org.opensearch.commons.authuser.User getUser()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setUser

      public void setUser(org.opensearch.commons.authuser.User user)