|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.broadcast.BroadcastOperationRequest org.elasticsearch.action.admin.indices.flush.FlushRequest
public class FlushRequest
A flush request to flush one or more indices. The flush process of an index basically frees memory from the index by flushing data to the index storage and clearing the internal transaction log. By default, ElasticSearch uses memory heuristics in order to automatically trigger flush operations as required in order to clear memory.
Best created with Requests.flushRequest(String...)
.
Requests.flushRequest(String...)
,
IndicesAdminClient.flush(FlushRequest)
,
FlushResponse
Field Summary |
---|
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest |
---|
indices |
Constructor Summary | |
---|---|
FlushRequest(String... indices)
Constructs a new flush request against one or more indices. |
Method Summary | |
---|---|
boolean |
force()
Force flushing, even if one is possibly not needed. |
FlushRequest |
force(boolean force)
Force flushing, even if one is possibly not needed. |
boolean |
full()
Should a "full" flush be performed. |
FlushRequest |
full(boolean full)
Should a "full" flush be performed. |
FlushRequest |
listenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
FlushRequest |
operationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model. |
void |
readFrom(StreamInput in)
|
boolean |
refresh()
Should a refresh be performed once the flush is done. |
FlushRequest |
refresh(boolean refresh)
Should a refresh be performed once the flush is done. |
void |
writeTo(StreamOutput out)
|
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest |
---|
beforeLocalFork, beforeStart, ignoreIndices, ignoreIndices, indices, indices, listenerThreaded, operationThreading, operationThreading, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlushRequest(String... indices)
Method Detail |
---|
public boolean refresh()
public FlushRequest refresh(boolean refresh)
public boolean full()
public FlushRequest full(boolean full)
public boolean force()
public FlushRequest force(boolean force)
public FlushRequest listenerThreaded(boolean threadedListener)
listenerThreaded
in interface ActionRequest
listenerThreaded
in class BroadcastOperationRequest
public FlushRequest operationThreading(BroadcastOperationThreading operationThreading)
operationThreading
in class BroadcastOperationRequest
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastOperationRequest
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastOperationRequest
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |