Package org.elasticsearch.client.ml
Class DeleteExpiredDataRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.client.ml.DeleteExpiredDataRequest
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
,TaskAwareRequest
public class DeleteExpiredDataRequest extends ActionRequest implements ToXContentObject
Request to delete expired model snapshots and forecasts
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DeleteExpiredDataRequest()
Create a new request to delete expired dataDeleteExpiredDataRequest(java.lang.Float requestsPerSecond, TimeValue timeout)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Float
getRequestsPerSecond()
The requests allowed per second in the underlying Delete by Query requests executed.TimeValue
getTimeout()
Indicates how long the deletion request will run until it timesout.int
hashCode()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
ActionRequestValidationException
validate()
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
DeleteExpiredDataRequest
public DeleteExpiredDataRequest()Create a new request to delete expired data -
DeleteExpiredDataRequest
-
-
Method Details
-
getRequestsPerSecond
public java.lang.Float getRequestsPerSecond()The requests allowed per second in the underlying Delete by Query requests executed. `-1.0f` indicates that the standard nightly cleanup behavior should be ran. Throttling scales according to the number of data nodes. `null` is default and means no throttling will occur. -
getTimeout
Indicates how long the deletion request will run until it timesout. Default value is 8 hours. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
validate
- Specified by:
validate
in classActionRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-