public class MongoMissingLastRevSeeker extends MissingLastRevSeeker
clock
Constructor and Description |
---|
MongoMissingLastRevSeeker(MongoDocumentStore store,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
@NotNull CloseableIterable<NodeDocument> |
getCandidates(long startTime)
Get the candidates with modified time greater than or equal the specified
startTime in milliseconds since the start of the epoch. |
boolean |
isRecoveryNeeded()
Returns
true if any of the cluster node info documents satisfies
ClusterNodeInfoDocument.isRecoveryNeeded(long) where the passed
timestamp is the current time. |
acquireRecoveryLock, getAllClusters, getClusterNodeInfo, getRoot, isRecoveryNeeded, releaseRecoveryLock
public MongoMissingLastRevSeeker(MongoDocumentStore store, Clock clock)
@NotNull public @NotNull CloseableIterable<NodeDocument> getCandidates(long startTime)
MissingLastRevSeeker
startTime
in milliseconds since the start of the epoch.getCandidates
in class MissingLastRevSeeker
startTime
- the start time in milliseconds.public boolean isRecoveryNeeded()
MissingLastRevSeeker
true
if any of the cluster node info documents satisfies
ClusterNodeInfoDocument.isRecoveryNeeded(long)
where the passed
timestamp is the current time.isRecoveryNeeded
in class MissingLastRevSeeker
true
if any of the cluster nodes need recovery,
false
otherwise.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.