Interface DelegatedTransactionRecoveryFence
-
public interface DelegatedTransactionRecoveryFenceInterface to implement by delegated transaction recovery lock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetInstanceRecoveredFor(String path, long timestamp)Returns instance for which delegated recovery was done before the timestamp specified on the specified path or null if such instance does not existbooleanisFenceRaised(String path, String instanceName, long timestamp)Returns true if the specified instance on the specified path is being recovered after the specified timestampvoidlowerFence(String path, String instanceName)Lower the fence for the specified instance on the specified pathvoidraiseFence(String path, String instanceName)Raise the fence for the specified instance on the specified path so that no other instance can start delegated recovery at the same time.voidtransferRecoveryTo(String path, String instanceName)If an instance was doing delegated recovery on the specified path, assign specified instance instead.
-
-
-
Method Detail
-
isFenceRaised
boolean isFenceRaised(String path, String instanceName, long timestamp)
Returns true if the specified instance on the specified path is being recovered after the specified timestamp
-
raiseFence
void raiseFence(String path, String instanceName)
Raise the fence for the specified instance on the specified path so that no other instance can start delegated recovery at the same time.
-
lowerFence
void lowerFence(String path, String instanceName)
Lower the fence for the specified instance on the specified path
-
getInstanceRecoveredFor
String getInstanceRecoveredFor(String path, long timestamp)
Returns instance for which delegated recovery was done before the timestamp specified on the specified path or null if such instance does not exist
-
-