public 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.Empty
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and 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 and 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.
|
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public 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 ActionRequest
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<DeleteSnapshotRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<DeleteSnapshotRequest>
java.io.IOException