Streamable, Writeable, TaskAwareRequestpublic class SnapshotsStatusRequest extends MasterNodeRequest<SnapshotsStatusRequest>
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
SnapshotsStatusRequest() |
|
SnapshotsStatusRequest(java.lang.String repository) |
Constructs a new get snapshots request with given repository name
|
SnapshotsStatusRequest(java.lang.String repository,
java.lang.String[] snapshots) |
Constructs a new get snapshots request with given repository name and list of snapshots
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
ignoreUnavailable() |
Returns whether the request permits unavailable snapshots to be ignored.
|
SnapshotsStatusRequest |
ignoreUnavailable(boolean ignoreUnavailable) |
Set to
true to ignore unavailable snapshots, instead of throwing an exception. |
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
repository() |
Returns repository name
|
SnapshotsStatusRequest |
repository(java.lang.String repository) |
Sets repository name
|
java.lang.String[] |
snapshots() |
Returns the names of the snapshots.
|
SnapshotsStatusRequest |
snapshots(java.lang.String[] snapshots) |
Sets the list of snapshots to be returned
|
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 SnapshotsStatusRequest()
public SnapshotsStatusRequest(java.lang.String repository,
java.lang.String[] snapshots)
repository - repository namesnapshots - list of snapshotspublic SnapshotsStatusRequest(java.lang.String repository)
repository - repository namepublic ActionRequestValidationException validate()
validate in class ActionRequestpublic SnapshotsStatusRequest repository(java.lang.String repository)
repository - repository namepublic java.lang.String repository()
public java.lang.String[] snapshots()
public SnapshotsStatusRequest snapshots(java.lang.String[] snapshots)
public SnapshotsStatusRequest ignoreUnavailable(boolean ignoreUnavailable)
true to ignore unavailable snapshots, instead of throwing an exception.
Defaults to false, which means unavailable snapshots cause an exception to be thrown.ignoreUnavailable - whether to ignore unavailable snapshotspublic boolean ignoreUnavailable()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class MasterNodeRequest<SnapshotsStatusRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class MasterNodeRequest<SnapshotsStatusRequest>java.io.IOException