Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,13 @@ public void testSnapshotGetSnapshots() throws IOException {
createTestSnapshots();

// tag::get-snapshots-request
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);
GetSnapshotsRequest request = new GetSnapshotsRequest();
// end::get-snapshots-request

// tag::get-snapshots-request-repositoryName
request.repository(repositoryName);
// end::get-snapshots-request-repositoryName

// tag::get-snapshots-request-snapshots
String[] snapshots = { snapshotName };
request.snapshots(snapshots); // <1>
Expand Down Expand Up @@ -500,13 +504,13 @@ public void testSnapshotGetSnapshots() throws IOException {
public void testSnapshotGetSnapshotsAsync() throws InterruptedException {
RestHighLevelClient client = highLevelClient();
{
GetSnapshotsRequest request = new GetSnapshotsRequest();
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);

// tag::get-snapshots-execute-listener
ActionListener<GetSnapshotsResponse> listener =
new ActionListener<GetSnapshotsResponse>() {
@Override
public void onResponse(GetSnapshotsResponse deleteSnapshotResponse) {
public void onResponse(GetSnapshotsResponse getSnapshotsResponse) {
// <1>
}

Expand Down