Module org.elasticsearch.server
Package org.elasticsearch.repositories
Class RepositoryData.SnapshotDetails
java.lang.Object
org.elasticsearch.repositories.RepositoryData.SnapshotDetails
- Enclosing class:
- RepositoryData
A few details of an individual snapshot stored in the top-level index blob, so they are readily accessible without having to load
the corresponding
SnapshotInfo
blob for each snapshot.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotDetails
(SnapshotState snapshotState, IndexVersion version, long startTimeMillis, long endTimeMillis, String slmPolicy) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromSnapshotInfo
(SnapshotInfo snapshotInfo) long
long
int
hashCode()
toString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SnapshotDetails
public SnapshotDetails(@Nullable SnapshotState snapshotState, @Nullable IndexVersion version, long startTimeMillis, long endTimeMillis, @Nullable String slmPolicy)
-
-
Method Details
-
getSnapshotState
-
getVersion
-
getStartTimeMillis
public long getStartTimeMillis()- Returns:
- start time in millis since the epoch, or
-1
if unknown.
-
getEndTimeMillis
public long getEndTimeMillis()- Returns:
- end time in millis since the epoch, or
-1
if unknown.
-
getSlmPolicy
- Returns:
- the SLM policy that the snapshot was created by or an empty string if it was not created by an SLM policy or
null
if unknown.
-
equals
-
hashCode
public int hashCode() -
toString
-
fromSnapshotInfo
-