public class Sweep2StatusDocument
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static long |
acquireOrUpdateSweep2Lock(DocumentStore documentStore,
int clusterId,
boolean forceSweepingStatus)
Acquires the sweep2 lock.
|
static boolean |
forceReleaseSweep2LockAndMarkSwept(DocumentStore documentStore,
int clusterId)
Release the sweep2 lock and record swept2 successful.
|
int |
getLockClusterId() |
long |
getLockValue() |
java.lang.Integer |
getSweptById() |
boolean |
isChecking() |
boolean |
isSweeping() |
boolean |
isSwept() |
static Sweep2StatusDocument |
readFrom(DocumentStore documentStore) |
java.lang.String |
toString() |
public static Sweep2StatusDocument readFrom(DocumentStore documentStore)
public static long acquireOrUpdateSweep2Lock(DocumentStore documentStore, int clusterId, boolean forceSweepingStatus)
documentStore
- clusterId
- forceSweepingStatus
- if false uses the default way to set the sweep2-status,
if set to true (force-)sets sweep2-status to 'sweeping'.
the latter can be used if the caller knows a sweeping is necessary and wants to skip the 'checking' phase explicitlypublic static boolean forceReleaseSweep2LockAndMarkSwept(DocumentStore documentStore, int clusterId)
documentStore
- clusterId
- public boolean isSwept()
public boolean isSweeping()
public boolean isChecking()
public int getLockClusterId()
public java.lang.Integer getSweptById()
public long getLockValue()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.