Class SetUpgradeModeRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.transform.SetUpgradeModeRequest
Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode
 setting that prepares transform indices for an upgrade. When upgrading your
 cluster, in some circumstances you must restart your nodes and reindex your
 transform indices. In those circumstances, there must be no transforms
 running. You can close the transforms, do the upgrade, then open all the
 transforms again. Alternatively, you can use this API to temporarily halt
 tasks associated with the transforms and prevent new transforms from opening.
 You can also use this API during upgrades that do not require you to reindex
 your transform indices, though stopping transforms is not a requirement in
 that case. You can see the current value for the upgrade_mode setting by
 using the get transform info API.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Endpoint<SetUpgradeModeRequest,SetUpgradeModeResponse, ErrorResponse> Endpoint "transform.set_upgrade_mode".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Booleanenabled()Whentrue, it enablesupgrade_modewhich temporarily halts all transform tasks and prohibits new transform tasks from starting.static SetUpgradeModeRequestfinal Timetimeout()The time to wait for the request to be completed.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_ENDPOINTEndpoint "transform.set_upgrade_mode".
 
- 
- 
Method Details- 
ofpublic static SetUpgradeModeRequest of(Function<SetUpgradeModeRequest.Builder, ObjectBuilder<SetUpgradeModeRequest>> fn) 
- 
enabledWhentrue, it enablesupgrade_modewhich temporarily halts all transform tasks and prohibits new transform tasks from starting.API name: enabled
- 
timeoutThe time to wait for the request to be completed.API name: timeout
 
-