org.elasticsearch.action.admin.indices.gateway.snapshot
Class GatewaySnapshotRequest
java.lang.Object
org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
org.elasticsearch.action.admin.indices.gateway.snapshot.GatewaySnapshotRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class GatewaySnapshotRequest
- extends BroadcastOperationRequest
Gateway snapshot allows to explicitly perform a snapshot through the gateway of one or more indices (backup them).
By default, each index gateway periodically snapshot changes, though it can be disabled and be controlled completely
through this API. Best created using Requests.gatewaySnapshotRequest(String...)
.
- See Also:
Requests.gatewaySnapshotRequest(String...)
,
IndicesAdminClient.gatewaySnapshot(GatewaySnapshotRequest)
,
GatewaySnapshotResponse
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest |
beforeLocalFork, beforeStart, ignoreIndices, ignoreIndices, indices, indices, listenerThreaded, operationThreading, operationThreading, operationThreading, readFrom, validate, writeTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GatewaySnapshotRequest
public GatewaySnapshotRequest(String... indices)
- Constructs a new gateway snapshot against one or more indices. No indices means the gateway snapshot
will be executed against all indices.
listenerThreaded
public GatewaySnapshotRequest listenerThreaded(boolean threadedListener)
- Should the listener be called on a separate thread if needed.
- Specified by:
listenerThreaded
in interface ActionRequest
- Overrides:
listenerThreaded
in class BroadcastOperationRequest
Copyright © 2009-2012. All Rights Reserved.