Package org.elasticsearch.client.ml
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:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
Sets ML into upgrade_mode
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.elasticsearch.core.TimeValueinthashCode()booleanvoidsetEnabled(boolean enabled) voidsetTimeout(org.elasticsearch.core.TimeValue timeout) How long to wait for the request to be completedvalidate()Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, writeToMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
- Specified by:
validatein classActionRequest
-
hashCode
public int hashCode() -
equals
-