public class GetSnapshotsRequest extends MasterNodeRequest<GetSnapshotsRequest>
TransportRequest.Empty| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
ALL_SNAPSHOTS |
static String |
CURRENT_SNAPSHOT |
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| コンストラクタと説明 |
|---|
GetSnapshotsRequest() |
GetSnapshotsRequest(String repository)
Constructs a new get snapshots request with given repository name
|
GetSnapshotsRequest(String repository,
String[] snapshots)
Constructs a new get snapshots request with given repository name and list of snapshots
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
ignoreUnavailable() |
GetSnapshotsRequest |
ignoreUnavailable(boolean ignoreUnavailable)
Set to true to ignore unavailable snapshots
|
void |
readFrom(StreamInput in) |
String |
repository()
Returns repository name
|
GetSnapshotsRequest |
repository(String repository)
Sets repository name
|
String[] |
snapshots()
Returns the names of the snapshots.
|
GetSnapshotsRequest |
snapshots(String[] snapshots)
Sets the list of snapshots to be returned
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic GetSnapshotsRequest()
public GetSnapshotsRequest(String repository, String[] snapshots)
repository - repository namesnapshots - list of snapshotspublic GetSnapshotsRequest(String repository)
repository - repository namepublic ActionRequestValidationException validate()
validate クラス内 ActionRequest<GetSnapshotsRequest>public GetSnapshotsRequest repository(String repository)
repository - repository namepublic String repository()
public String[] snapshots()
public GetSnapshotsRequest snapshots(String[] snapshots)
public GetSnapshotsRequest ignoreUnavailable(boolean ignoreUnavailable)
public boolean ignoreUnavailable()
public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 MasterNodeRequest<GetSnapshotsRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 MasterNodeRequest<GetSnapshotsRequest>IOExceptionCopyright © 2009–2016. All rights reserved.