Streamable, Writeable, TaskAwareRequestpublic class DeleteSnapshotRequest extends MasterNodeRequest<DeleteSnapshotRequest>
Delete snapshot request removes the snapshot record from the repository and cleans up all files that are associated with this particular snapshot. All files that are shared with at least one other existing snapshot are left intact.
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
DeleteSnapshotRequest() |
Constructs a new delete snapshots request
|
DeleteSnapshotRequest(java.lang.String repository) |
Constructs a new delete snapshots request with repository name
|
DeleteSnapshotRequest(java.lang.String repository,
java.lang.String snapshot) |
Constructs a new delete snapshots request with repository and snapshot name
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
repository() |
Returns repository name
|
DeleteSnapshotRequest |
repository(java.lang.String repository) |
|
java.lang.String |
snapshot() |
Returns repository name
|
DeleteSnapshotRequest |
snapshot(java.lang.String snapshot) |
Sets snapshot name
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
getShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic DeleteSnapshotRequest()
public DeleteSnapshotRequest(java.lang.String repository,
java.lang.String snapshot)
repository - repository namesnapshot - snapshot namepublic DeleteSnapshotRequest(java.lang.String repository)
repository - repository namepublic ActionRequestValidationException validate()
validate in class ActionRequestpublic DeleteSnapshotRequest repository(java.lang.String repository)
public java.lang.String repository()
public java.lang.String snapshot()
public DeleteSnapshotRequest snapshot(java.lang.String snapshot)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class MasterNodeRequest<DeleteSnapshotRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class MasterNodeRequest<DeleteSnapshotRequest>java.io.IOException