|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.transaction.jts.recovery.RecoveryLockFile
public class RecoveryLockFile
This class manages lock file required for delegated recovery.
in the recovery lock file have the following format:
PREFIX INSTANCE_NAME TIMESTAMP
Where PREFIX can be one of:
- "O" means OWNED by this instance, i.e. non-delegated recovery
- "B" means recovered BY the specified instance
- "F" means recovered FOR the specified instance
TIMESTAMP is the time of the recovery operation| Method Summary | |
|---|---|
static DelegatedTransactionRecoveryFence |
getDelegatedTransactionRecoveryFence(GMSCallBack gmsCallBack)
|
java.lang.String |
getInstanceRecoveredFor(java.lang.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 |
boolean |
isFenceRaised(java.lang.String logDir,
java.lang.String instance,
long timestamp)
Returns true if the specified instance on the specified path is being recovered after the specified timestamp |
void |
lowerFence()
Lower the fence |
void |
lowerFence(java.lang.String logPath,
java.lang.String instance)
Lower the fence for the specified instance on the specified path |
void |
raiseFence()
Raise the fence so that no other instance can start the recovery at the same time. |
void |
raiseFence(java.lang.String logPath,
java.lang.String instance)
Raise the fence for the specified instance on the specified path so that no other instance can start delegated recovery at the same time. |
void |
raiseFence(java.lang.String logPath,
java.lang.String instance,
long timestamp)
|
void |
start()
DataStructures are initialized first. |
void |
transferRecoveryTo(java.lang.String logDir,
java.lang.String instance)
If an instance was doing delegated recovery on the specified path, assign specified instance instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DelegatedTransactionRecoveryFence getDelegatedTransactionRecoveryFence(GMSCallBack gmsCallBack)
public void start()
TransactionRecoveryFence
start in interface TransactionRecoveryFencepublic void raiseFence()
raiseFence in interface TransactionRecoveryFencepublic void lowerFence()
lowerFence in interface TransactionRecoveryFence
public boolean isFenceRaised(java.lang.String logDir,
java.lang.String instance,
long timestamp)
isFenceRaised in interface DelegatedTransactionRecoveryFence
public void raiseFence(java.lang.String logPath,
java.lang.String instance)
raiseFence in interface DelegatedTransactionRecoveryFence
public void raiseFence(java.lang.String logPath,
java.lang.String instance,
long timestamp)
public void lowerFence(java.lang.String logPath,
java.lang.String instance)
lowerFence in interface DelegatedTransactionRecoveryFence
public java.lang.String getInstanceRecoveredFor(java.lang.String path,
long timestamp)
getInstanceRecoveredFor in interface DelegatedTransactionRecoveryFence
public void transferRecoveryTo(java.lang.String logDir,
java.lang.String instance)
transferRecoveryTo in interface DelegatedTransactionRecoveryFence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||