Class SnapshotsStatusRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<SnapshotsStatusRequest>
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotsStatusRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.util.concurrent.RefCounted,TaskAwareRequest
public class SnapshotsStatusRequest extends MasterNodeRequest<SnapshotsStatusRequest>
Get snapshot status request
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout -
Constructor Summary
Constructors Constructor Description SnapshotsStatusRequest()SnapshotsStatusRequest(java.lang.String repository)Constructs a new get snapshots request with given repository nameSnapshotsStatusRequest(java.lang.String repository, java.lang.String[] snapshots)Constructs a new get snapshots request with given repository name and list of snapshotsSnapshotsStatusRequest(StreamInput in) -
Method Summary
Modifier and Type Method Description booleanignoreUnavailable()Returns whether the request permits unavailable snapshots to be ignored.SnapshotsStatusRequestignoreUnavailable(boolean ignoreUnavailable)Set totrueto ignore unavailable snapshots, instead of throwing an exception.java.lang.Stringrepository()Returns repository nameSnapshotsStatusRequestrepository(java.lang.String repository)Sets repository namejava.lang.String[]snapshots()Returns the names of the snapshots.SnapshotsStatusRequestsnapshots(java.lang.String[] snapshots)Sets the list of snapshots to be returnedActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
SnapshotsStatusRequest
public SnapshotsStatusRequest() -
SnapshotsStatusRequest
public SnapshotsStatusRequest(java.lang.String repository, java.lang.String[] snapshots)Constructs a new get snapshots request with given repository name and list of snapshots- Parameters:
repository- repository namesnapshots- list of snapshots
-
SnapshotsStatusRequest
- Throws:
java.io.IOException
-
SnapshotsStatusRequest
public SnapshotsStatusRequest(java.lang.String repository)Constructs a new get snapshots request with given repository name- Parameters:
repository- repository name
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classMasterNodeRequest<SnapshotsStatusRequest>- Throws:
java.io.IOException
-
validate
- Specified by:
validatein classActionRequest
-
repository
Sets repository name- Parameters:
repository- repository name- Returns:
- this request
-
repository
public java.lang.String repository()Returns repository name- Returns:
- repository name
-
snapshots
public java.lang.String[] snapshots()Returns the names of the snapshots.- Returns:
- the names of snapshots
-
snapshots
Sets the list of snapshots to be returned- Returns:
- this request
-