public class DeleteSnapshotRequest extends MasterNodeOperationRequest<DeleteSnapshotRequest>
TransportRequest.EmptyDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
DeleteSnapshotRequest()
Constructs a new delete snapshots request
|
DeleteSnapshotRequest(String repository)
Constructs a new delete snapshots request with repository name
|
DeleteSnapshotRequest(String repository,
String snapshot)
Constructs a new delete snapshots request with repository and snapshot name
|
| Modifier and Type | Method and Description |
|---|---|
void |
readFrom(StreamInput in) |
String |
repository()
Returns repository name
|
DeleteSnapshotRequest |
repository(String repository) |
String |
snapshot()
Returns repository name
|
DeleteSnapshotRequest |
snapshot(String snapshot)
Sets snapshot name
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic DeleteSnapshotRequest()
public DeleteSnapshotRequest(String repository, String snapshot)
repository - repository namesnapshot - snapshot namepublic DeleteSnapshotRequest(String repository)
repository - repository namepublic ActionRequestValidationException validate()
validate in class ActionRequest<DeleteSnapshotRequest>public DeleteSnapshotRequest repository(String repository)
public String repository()
public String snapshot()
public DeleteSnapshotRequest snapshot(String snapshot)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeOperationRequest<DeleteSnapshotRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeOperationRequest<DeleteSnapshotRequest>IOExceptionCopyright © 2009–2016. All rights reserved.