Class SetUpgradeModeRequest

java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.client.ml.SetUpgradeModeRequest
All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.tasks.TaskAwareRequest

public class SetUpgradeModeRequest extends org.elasticsearch.action.ActionRequest
Sets ML into upgrade_mode
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest

    org.elasticsearch.transport.TransportRequest.Empty

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SetUpgradeModeRequest(boolean enabled)
    Create a new request
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    org.elasticsearch.core.TimeValue
     
    int
     
    boolean
     
    void
    setEnabled(boolean enabled)
     
    void
    setTimeout(org.elasticsearch.core.TimeValue timeout)
    How long to wait for the request to be completed
    org.elasticsearch.action.ActionRequestValidationException
     

    Methods inherited from class org.elasticsearch.action.ActionRequest

    getShouldStoreResult, writeTo

    Methods inherited from class org.elasticsearch.transport.TransportRequest

    getParentTask, setParentTask, toString

    Methods inherited from class org.elasticsearch.transport.TransportMessage

    decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest

    createTask, getDescription, setParentTask
  • Field Details

    • ENABLED

      public static final org.elasticsearch.xcontent.ParseField ENABLED
    • TIMEOUT

      public static final org.elasticsearch.xcontent.ParseField TIMEOUT
  • Constructor Details

    • SetUpgradeModeRequest

      public SetUpgradeModeRequest(boolean enabled)
      Create a new request
      Parameters:
      enabled - whether to enable `upgrade_mode` or not
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getTimeout

      public org.elasticsearch.core.TimeValue getTimeout()
    • setTimeout

      public void setTimeout(org.elasticsearch.core.TimeValue timeout)
      How long to wait for the request to be completed
      Parameters:
      timeout - default value of 30 seconds
    • validate

      public org.elasticsearch.action.ActionRequestValidationException validate()
      Specified by:
      validate in class org.elasticsearch.action.ActionRequest
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object