public class SnapshotsStatusRequest extends MasterNodeOperationRequest<SnapshotsStatusRequest>
TransportRequest.Empty
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
SnapshotsStatusRequest() |
SnapshotsStatusRequest(String repository)
Constructs a new get snapshots request with given repository name
|
SnapshotsStatusRequest(String repository,
String[] snapshots)
Constructs a new get snapshots request with given repository name and list of snapshots
|
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in) |
String |
repository()
Returns repository name
|
SnapshotsStatusRequest |
repository(String repository)
Sets repository name
|
String[] |
snapshots()
Returns the names of the snapshots.
|
SnapshotsStatusRequest |
snapshots(String[] snapshots)
Sets the list of snapshots to be returned
|
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 SnapshotsStatusRequest()
public SnapshotsStatusRequest(String repository, String[] snapshots)
repository
- repository namesnapshots
- list of snapshotspublic SnapshotsStatusRequest(String repository)
repository
- repository namepublic ActionRequestValidationException validate()
validate
in class ActionRequest<SnapshotsStatusRequest>
public SnapshotsStatusRequest repository(String repository)
repository
- repository namepublic String repository()
public String[] snapshots()
public SnapshotsStatusRequest snapshots(String[] snapshots)
snapshots
- public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeOperationRequest<SnapshotsStatusRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest<SnapshotsStatusRequest>
IOException
Copyright © 2009–2015. All rights reserved.