org.elasticsearch.action.admin.indices.gateway.snapshot
Class GatewaySnapshotRequest
java.lang.Object
org.elasticsearch.action.support.replication.IndicesReplicationOperationRequest
org.elasticsearch.action.admin.indices.gateway.snapshot.GatewaySnapshotRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class GatewaySnapshotRequest
- extends IndicesReplicationOperationRequest
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
Constructor Summary |
GatewaySnapshotRequest(java.lang.String... indices)
Constructs a new gateway snapshot against one or more indices. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GatewaySnapshotRequest
public GatewaySnapshotRequest(java.lang.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 IndicesReplicationOperationRequest
timeout
public GatewaySnapshotRequest timeout(TimeValue timeout)
timeout
public GatewaySnapshotRequest timeout(java.lang.String timeout)