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:
org.elasticsearch.common.io.stream.Writeable
,org.elasticsearch.tasks.TaskAwareRequest
public class SetUpgradeModeRequest
extends org.elasticsearch.action.ActionRequest
Sets ML into upgrade_mode
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SetUpgradeModeRequest(boolean enabled)
Create a new request -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object other)
org.elasticsearch.common.unit.TimeValue
getTimeout()
int
hashCode()
boolean
isEnabled()
void
setEnabled(boolean enabled)
void
setTimeout(org.elasticsearch.common.unit.TimeValue timeout)
How long to wait for the request to be completedorg.elasticsearch.action.ActionRequestValidationException
validate()
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Field Details
-
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.common.unit.TimeValue getTimeout() -
setTimeout
public void setTimeout(org.elasticsearch.common.unit.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 classorg.elasticsearch.action.ActionRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equals
in classjava.lang.Object
-