public class DeleteSnapshotRequest extends MasterNodeOperationRequest<DeleteSnapshotRequest>
TransportRequest.Empty
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
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, masterNodeTimeout
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public 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 Streamable
readFrom
in class MasterNodeOperationRequest<DeleteSnapshotRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest<DeleteSnapshotRequest>
IOException
Copyright © 2009–2015. All rights reserved.