Package org.elasticsearch.client.ml
Class SetUpgradeModeRequest
java.lang.Object
org.elasticsearch.client.ml.SetUpgradeModeRequest
- All Implemented Interfaces:
Validatable
Sets ML into upgrade_mode
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.elasticsearch.core.TimeValue
int
hashCode()
boolean
void
setEnabled(boolean enabled)
void
setTimeout(org.elasticsearch.core.TimeValue timeout)
How long to wait for the request to be completedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Field Details
-
ENABLED
public static final org.elasticsearch.common.xcontent.ParseField ENABLED -
TIMEOUT
public static final org.elasticsearch.common.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
-
hashCode
public int hashCode() -
equals
-