Class SyncedFlushRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.BroadcastRequest<SyncedFlushRequest>
org.elasticsearch.action.admin.indices.flush.SyncedFlushRequest
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,TaskAwareRequest
public class SyncedFlushRequest extends BroadcastRequest<SyncedFlushRequest>
A synced flush request to sync flush one or more indices. The synced flush process of an index performs a flush
and writes the same sync id to primary and all copies.
Best created with Requests.syncedFlushRequest(String...).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description SyncedFlushRequest(java.lang.String... indices)Constructs a new synced flush request against one or more indices.SyncedFlushRequest(StreamInput in) -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
includeDataStreams, indices, indices, indicesOptions, indicesOptions, validate, writeToMethods 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
SyncedFlushRequest
public SyncedFlushRequest(java.lang.String... indices)Constructs a new synced flush request against one or more indices. If nothing is provided, all indices will be sync flushed. -
SyncedFlushRequest
- Throws:
java.io.IOException
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-