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
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.client.Validatable
EMPTY -
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 completedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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
-