Package org.elasticsearch.cluster
Class SnapshotsInProgress.Entry
java.lang.Object
org.elasticsearch.cluster.SnapshotsInProgress.Entry
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,RepositoryOperation
- Enclosing class:
- SnapshotsInProgress
public static class SnapshotsInProgress.Entry extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContent, RepositoryOperation
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, java.util.List<IndexId> indices, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, Version version, java.lang.String failure)
Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards)
Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.lang.String failure)
Entry(SnapshotsInProgress.Entry entry, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards)
Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version)
Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, java.util.List<java.lang.String> dataStreams, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.lang.String failure, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version)
Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, java.util.List<java.lang.String> dataStreams, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
dataStreams()
boolean
equals(java.lang.Object o)
java.lang.String
failure()
int
hashCode()
boolean
includeGlobalState()
java.util.List<IndexId>
indices()
boolean
isFragment()
boolean
partial()
java.lang.String
repository()
Name of the repository affected.long
repositoryStateId()
The repository state id at the time the operation began.ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus>
shards()
Snapshot
snapshot()
long
startTime()
SnapshotsInProgress.State
state()
java.lang.String
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
java.util.Map<java.lang.String,java.lang.Object>
userMetadata()
Version
version()
What version of metadata to use for the snapshot in the repositorySnapshotsInProgress.Entry
withRepoGen(long newRepoGen)
SnapshotsInProgress.Entry
withShards(ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards)
-
Constructor Details
-
Entry
public Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, java.util.List<java.lang.String> dataStreams, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.lang.String failure, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version) -
Entry
public Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, java.util.List<java.lang.String> dataStreams, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version) -
Entry
public Entry(Snapshot snapshot, boolean includeGlobalState, boolean partial, SnapshotsInProgress.State state, java.util.List<IndexId> indices, long startTime, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.util.Map<java.lang.String,java.lang.Object> userMetadata, Version version) -
Entry
public Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, java.util.List<IndexId> indices, long repositoryStateId, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, Version version, java.lang.String failure) -
Entry
public Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards) -
Entry
public Entry(SnapshotsInProgress.Entry entry, SnapshotsInProgress.State state, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards, java.lang.String failure) -
Entry
public Entry(SnapshotsInProgress.Entry entry, ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards)
-
-
Method Details
-
withRepoGen
-
withShards
public SnapshotsInProgress.Entry withShards(ImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards) -
repository
public java.lang.String repository()Description copied from interface:RepositoryOperation
Name of the repository affected.- Specified by:
repository
in interfaceRepositoryOperation
-
snapshot
-
shards
-
state
-
indices
-
includeGlobalState
public boolean includeGlobalState() -
userMetadata
public java.util.Map<java.lang.String,java.lang.Object> userMetadata() -
partial
public boolean partial() -
startTime
public long startTime() -
dataStreams
public java.util.List<java.lang.String> dataStreams() -
repositoryStateId
public long repositoryStateId()Description copied from interface:RepositoryOperation
The repository state id at the time the operation began.- Specified by:
repositoryStateId
in interfaceRepositoryOperation
-
failure
public java.lang.String failure() -
version
What version of metadata to use for the snapshot in the repository -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
isFragment
public boolean isFragment()- Specified by:
isFragment
in interfaceorg.elasticsearch.common.xcontent.ToXContent
-