Class SnapshotsStatusRequestBuilder
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<SnapshotsStatusRequest,SnapshotsStatusResponse,SnapshotsStatusRequestBuilder>
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequestBuilder
public class SnapshotsStatusRequestBuilder
extends MasterNodeOperationRequestBuilder<SnapshotsStatusRequest,SnapshotsStatusResponse,SnapshotsStatusRequestBuilder>
Snapshots status request builder
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionSnapshotsStatusRequestBuilder(ElasticsearchClient client, SnapshotsStatusAction action)
Constructs the new snapshot status requestSnapshotsStatusRequestBuilder(ElasticsearchClient client, SnapshotsStatusAction action, repository)
Constructs the new snapshot status request with specified repository -
Method Summary
Modifier and TypeMethodDescription... snapshots)
Adds additional snapshots to the list of snapshots to returnsetIgnoreUnavailable(boolean ignoreUnavailable)
Set totrue
to ignore unavailable snapshots, instead of throwing an exception.repository)
Sets the repository name... snapshots)
Sets list of snapshots to returnMethods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
SnapshotsStatusRequestBuilder
Constructs the new snapshot status request -
SnapshotsStatusRequestBuilder
public SnapshotsStatusRequestBuilder(ElasticsearchClient client, SnapshotsStatusAction action, repository)Constructs the new snapshot status request with specified repository
-
-
Method Details
-
setRepository
public repository)Sets the repository name- Parameters:
repository
- repository name- Returns:
- this builder
-
setSnapshots
public ... snapshots)Sets list of snapshots to return- Parameters:
snapshots
- list of snapshots- Returns:
- this builder
-
addSnapshots
public ... snapshots)Adds additional snapshots to the list of snapshots to return- Parameters:
snapshots
- additional snapshots- Returns:
- this builder
-