use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class RecoverConnectableAtomicActionBean method createWrapper.
@Override
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate) {
try {
InputObjectState state = StoreManager.getRecoveryStore().read_committed(w.getUid(), RecoverConnectableAtomicAction.CONNECTABLE_ATOMIC_ACTION_TYPE);
connectableAtomicAction = new RecoverConnectableAtomicAction(RecoverConnectableAtomicAction.CONNECTABLE_ATOMIC_ACTION_TYPE, w.getUid(), state);
} catch (ObjectStoreException e) {
;
} catch (IOException e) {
;
}
GenericAtomicActionWrapper action = new GenericAtomicActionWrapper(connectableAtomicAction, w);
if (activate)
action.activate();
return action;
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class ATCoordinatorRecoveryModule method processTransactionsStatus.
private void processTransactionsStatus() {
// Process the Vector of transaction Uids
Enumeration transactionUidEnum = _transactionUidVector.elements();
while (transactionUidEnum.hasMoreElements()) {
Uid currentUid = (Uid) transactionUidEnum.nextElement();
try {
if (_recoveryStore.currentState(currentUid, _transactionType) != StateStatus.OS_UNKNOWN) {
doRecoverTransaction(currentUid);
}
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_coordinator_at_ATCoordinatorRecoveryModule_3(currentUid, ex);
}
}
XTSATRecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted();
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class SubordinateATCoordinatorRecoveryModule method processTransactionsStatus.
private void processTransactionsStatus() {
// Process the Vector of transaction Uids
Enumeration transactionUidEnum = _transactionUidVector.elements();
while (transactionUidEnum.hasMoreElements()) {
Uid currentUid = (Uid) transactionUidEnum.nextElement();
try {
if (_recoveryStore.currentState(currentUid, _transactionType) != StateStatus.OS_UNKNOWN) {
doRecoverTransaction(currentUid);
}
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_coordinator_at_SubordinateATCoordinatorRecoveryModule_3(currentUid, ex);
}
}
XTSATRecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted();
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class SubordinateATCoordinatorRecoveryModule method periodicWorkFirstPass.
/**
* This is called periodically by the RecoveryManager
*/
public void periodicWorkFirstPass() {
// Transaction type
boolean SubordinateCoordinators = false;
// uids per transaction type
InputObjectState acc_uids = new InputObjectState();
try {
if (RecoveryLogger.logger.isDebugEnabled()) {
RecoveryLogger.logger.debug("StatusModule: first pass ");
}
SubordinateCoordinators = _recoveryStore.allObjUids(_transactionType, acc_uids);
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_coordinator_at_SubordinateATCoordinatorRecoveryModule_1(ex);
}
if (SubordinateCoordinators) {
_transactionUidVector = processTransactions(acc_uids);
}
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class BAParticipantRecoveryModule method periodicWorkFirstPass.
/**
* This is called periodically by the RecoveryManager
*/
public void periodicWorkFirstPass() {
// Transaction type
boolean BAParticipants = false;
// uids per transaction type
InputObjectState acc_uids = new InputObjectState();
try {
if (RecoveryLogger.logger.isDebugEnabled()) {
RecoveryLogger.logger.debug("BAParticipantRecoveryModule: first pass");
}
BAParticipants = _recoveryStore.allObjUids(_participantType, acc_uids);
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_participant_ba_BAParticipantRecoveryModule_1(ex);
}
if (BAParticipants) {
_participantUidVector = processParticipants(acc_uids);
}
}
Aggregations