public static class SnapshotsService.SnapshotRequest extends Object
Constructor and Description |
---|
SnapshotsService.SnapshotRequest(String cause,
String name,
String repository)
Constructs new snapshot creation request
|
Modifier and Type | Method and Description |
---|---|
String |
cause()
Returns cause for snapshot operation
|
boolean |
includeGlobalState()
Returns true if global state should be stored as part of the snapshot
|
SnapshotsService.SnapshotRequest |
includeGlobalState(boolean includeGlobalState)
Set to true if global state should be stored as part of the snapshot
|
String[] |
indices()
Returns the list of indices to be snapshotted
|
SnapshotsService.SnapshotRequest |
indices(String[] indices)
Sets the list of indices to be snapshotted
|
IndicesOptions |
indicesOptions()
Returns indices options
|
SnapshotsService.SnapshotRequest |
indicesOptions(IndicesOptions indicesOptions)
Sets the indices options
|
TimeValue |
masterNodeTimeout()
Returns master node timeout
|
SnapshotsService.SnapshotRequest |
masterNodeTimeout(TimeValue masterNodeTimeout)
Sets master node timeout
|
String |
name()
Returns snapshot name
|
SnapshotsService.SnapshotRequest |
partial(boolean partial)
Set to true if partial snapshot should be allowed
|
String |
repository()
Returns snapshot repository
|
Settings |
settings()
Returns repository-specific settings for the snapshot operation
|
SnapshotsService.SnapshotRequest |
settings(Settings settings)
Sets repository-specific snapshot settings
|
public SnapshotsService.SnapshotRequest indices(String[] indices)
indices
- list of indicespublic SnapshotsService.SnapshotRequest settings(Settings settings)
settings
- snapshot settingspublic SnapshotsService.SnapshotRequest includeGlobalState(boolean includeGlobalState)
includeGlobalState
- true if global state should be stored as part of the snapshotpublic SnapshotsService.SnapshotRequest masterNodeTimeout(TimeValue masterNodeTimeout)
masterNodeTimeout
- master node timeoutpublic SnapshotsService.SnapshotRequest indicesOptions(IndicesOptions indicesOptions)
indicesOptions
- indices optionspublic SnapshotsService.SnapshotRequest partial(boolean partial)
partial
- true if partial snapshots should be allowedpublic String cause()
public String name()
public String repository()
public String[] indices()
public IndicesOptions indicesOptions()
public Settings settings()
public boolean includeGlobalState()
public TimeValue masterNodeTimeout()
Copyright © 2009–2016. All rights reserved.