com.sun.enterprise.transaction.jts.api
Interface DelegatedTransactionRecoveryFence

All Known Implementing Classes:
RecoveryLockFile

public interface DelegatedTransactionRecoveryFence

Interface to implement by delegated transaction recovery lock


Method Summary
 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 path, java.lang.String instanceName, long timestamp)
          Returns true if the specified instance on the specified path is being recovered after the specified timestamp
 void lowerFence(java.lang.String path, java.lang.String instanceName)
          Lower the fence for the specified instance on the specified path
 void raiseFence(java.lang.String path, java.lang.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.
 void transferRecoveryTo(java.lang.String path, java.lang.String instanceName)
          If an instance was doing delegated recovery on the specified path, assign specified instance instead.
 

Method Detail

isFenceRaised

boolean isFenceRaised(java.lang.String path,
                      java.lang.String instanceName,
                      long timestamp)
Returns true if the specified instance on the specified path is being recovered after the specified timestamp


raiseFence

void raiseFence(java.lang.String path,
                java.lang.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(java.lang.String path,
                java.lang.String instanceName)
Lower the fence for the specified instance on the specified path


getInstanceRecoveredFor

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


transferRecoveryTo

void transferRecoveryTo(java.lang.String path,
                        java.lang.String instanceName)
If an instance was doing delegated recovery on the specified path, assign specified instance instead.



Copyright © 2012 GlassFish Community. All Rights Reserved.