Package org.elasticsearch.repositories
Class RepositoryData.SnapshotDetails
org.elasticsearch.repositories.RepositoryData.SnapshotDetails
- Enclosing class:
- RepositoryData
public static class RepositoryData.SnapshotDetails
extends
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
-
Constructor Summary
ConstructorDescriptionSnapshotDetails(SnapshotState snapshotState, Version version, long startTimeMillis, long endTimeMillis)
-
Method Summary
Methods inherited from class java.lang.
, , , , , , , ,
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SnapshotDetails
public SnapshotDetails(@Nullable SnapshotState snapshotState, @Nullable Version version, long startTimeMillis, long endTimeMillis)
-
-
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.
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-