Package org.elasticsearch.snapshots
Class SnapshotsService.SnapshotRequest
- java.lang.Object
-
- org.elasticsearch.snapshots.SnapshotsService.SnapshotRequest
-
- Enclosing class:
- SnapshotsService
public static class SnapshotsService.SnapshotRequest extends java.lang.ObjectSnapshot creation request
-
-
Constructor Summary
Constructors Constructor Description SnapshotRequest(java.lang.String repositoryName, java.lang.String snapshotName, java.lang.String cause)Constructs new snapshot creation request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcause()Returns cause for snapshot operationbooleanincludeGlobalState()Returns true if global state should be stored as part of the snapshotSnapshotsService.SnapshotRequestincludeGlobalState(boolean includeGlobalState)Set to true if global state should be stored as part of the snapshotjava.lang.String[]indices()Returns the list of indices to be snapshottedSnapshotsService.SnapshotRequestindices(java.lang.String[] indices)Sets the list of indices to be snapshottedIndicesOptionsindicesOptions()Returns indices optionsSnapshotsService.SnapshotRequestindicesOptions(IndicesOptions indicesOptions)Sets the indices optionsTimeValuemasterNodeTimeout()Returns master node timeoutSnapshotsService.SnapshotRequestmasterNodeTimeout(TimeValue masterNodeTimeout)Sets master node timeoutbooleanpartial()Returns true if partial snapshot should be allowedSnapshotsService.SnapshotRequestpartial(boolean partial)Set to true if partial snapshot should be allowedjava.lang.StringrepositoryName()Returns the repository nameSettingssettings()Returns repository-specific settings for the snapshot operationSnapshotsService.SnapshotRequestsettings(Settings settings)Sets repository-specific snapshot settingsjava.lang.StringsnapshotName()Returns the snapshot name
-
-
-
Method Detail
-
indices
public SnapshotsService.SnapshotRequest indices(java.lang.String[] indices)
Sets the list of indices to be snapshotted- Parameters:
indices- list of indices- Returns:
- this request
-
settings
public SnapshotsService.SnapshotRequest settings(Settings settings)
Sets repository-specific snapshot settings- Parameters:
settings- snapshot settings- Returns:
- this request
-
includeGlobalState
public SnapshotsService.SnapshotRequest includeGlobalState(boolean includeGlobalState)
Set to true if global state should be stored as part of the snapshot- Parameters:
includeGlobalState- true if global state should be stored as part of the snapshot- Returns:
- this request
-
masterNodeTimeout
public SnapshotsService.SnapshotRequest masterNodeTimeout(TimeValue masterNodeTimeout)
Sets master node timeout- Parameters:
masterNodeTimeout- master node timeout- Returns:
- this request
-
indicesOptions
public SnapshotsService.SnapshotRequest indicesOptions(IndicesOptions indicesOptions)
Sets the indices options- Parameters:
indicesOptions- indices options- Returns:
- this request
-
partial
public SnapshotsService.SnapshotRequest partial(boolean partial)
Set to true if partial snapshot should be allowed- Parameters:
partial- true if partial snapshots should be allowed- Returns:
- this request
-
cause
public java.lang.String cause()
Returns cause for snapshot operation- Returns:
- cause for snapshot operation
-
repositoryName
public java.lang.String repositoryName()
Returns the repository name
-
snapshotName
public java.lang.String snapshotName()
Returns the snapshot name
-
indices
public java.lang.String[] indices()
Returns the list of indices to be snapshotted- Returns:
- the list of indices
-
indicesOptions
public IndicesOptions indicesOptions()
Returns indices options- Returns:
- indices options
-
settings
public Settings settings()
Returns repository-specific settings for the snapshot operation- Returns:
- repository-specific settings
-
includeGlobalState
public boolean includeGlobalState()
Returns true if global state should be stored as part of the snapshot- Returns:
- true if global state should be stored as part of the snapshot
-
partial
public boolean partial()
Returns true if partial snapshot should be allowed- Returns:
- true if partial snapshot should be allowed
-
masterNodeTimeout
public TimeValue masterNodeTimeout()
Returns master node timeout- Returns:
- master node timeout
-
-