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.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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 booleanequals(java.lang.Object o)java.lang.FloatgetRequestsPerSecond()The requests allowed per second in the underlying Delete by Query requests executed.TimeValuegetTimeout()Indicates how long the deletion request will run until it timesout.inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)ActionRequestValidationExceptionvalidate()Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
equalsin classjava.lang.Object
-
validate
- Specified by:
validatein classActionRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-