public boolean activate() { if (!activated) activated = super.activate(); return activated; }
/** * Allows a new Resource to be added to the transaction. Typically this is * used to replace a Resource that has failed and cannot be recovered on * it's original IOR. */ public void addResourceRecord (Uid rcUid, Resource r) { Coordinator coord = null; AbstractRecord corbaRec = createOTSRecord(true, r, coord, rcUid); addRecord(corbaRec); }
public boolean restore_state(final InputObjectState objectState, final int ot) { final boolean result = super.restore_state(objectState, ot); if (result) { try { final long oldtime = objectState.unpackLong(); lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { lastActiveTime = new Date(); } } return result; }
Status theStatus = get_status(); jtsLogger.logger.debug("RecoveredTransaction.replayPhase2 ("+get_uid()+") - status = "+Utility.stringStatus(theStatus)); || (theStatus == Status.StatusCommitted)) phase2Commit(_reportHeuristics); || (theStatus == Status.StatusMarkedRollback)) phase2Abort(_reportHeuristics); jtsLogger.logger.debug("RecoveredTransaction.replayPhase2 ("+get_uid()+") - status = "+Utility.stringStatus(theStatus));
public boolean save_state(final OutputObjectState objectState, final int ot) { final boolean result = super.save_state(objectState, ot); if (result) { lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (final IOException ex) { } } return result; }
/** * */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen! return Status.StatusUnknown; } } else { // if it can't be activated, we can't get the process uid return Status.StatusUnknown; } }
_transaction = new RecoveredTransaction(_uid); if ( firstLoad && _transaction.getRecoveryStatus() == RecoveryStatus.ACTIVATE_FAILED) {
Status theStatus = get_status(); "com.arjuna.ats.internal.jts.recovery.transactions.RecoveredTransaction_5", new Object[] { get_uid(), Utility.stringStatus(theStatus) }); || (theStatus == Status.StatusCommitted)) phase2Commit(_reportHeuristics); || (theStatus == Status.StatusMarkedRollback)) phase2Abort(_reportHeuristics); "com.arjuna.ats.internal.jts.recovery.transactions.RecoveredTransaction_5", new Object[] { get_uid() });
public boolean save_state (OutputObjectState os, int ot) { // do the other stuff boolean result = super.save_state(os,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { os.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
/** * */ public Status getOriginalStatus () { if (_recoveryStatus != RecoveryStatus.ACTIVATE_FAILED) { try { return StatusChecker.get_status(get_uid(), _originalProcessUid); } catch (Inactive ex) { // shouldn't happen! return Status.StatusUnknown; } } else { // if it can't be activated, we can't get the process uid return Status.StatusUnknown; } }
_transaction = new RecoveredTransaction(_uid); if ( firstLoad && _transaction.getRecoveryStatus() == RecoveryStatus.ACTIVATE_FAILED) {
/** * Allows a new Resource to be added to the transaction. Typically this is * used to replace a Resource that has failed and cannot be recovered on * it's original IOR. */ public void addResourceRecord (Uid rcUid, Resource r) { Coordinator coord = null; AbstractRecord corbaRec = createOTSRecord(true, r, coord, rcUid); addRecord(corbaRec); }
public boolean restore_state (InputObjectState objectState, int ot) { // do the other stuff boolean result = super.restore_state(objectState,ot); if (result) { try { long oldtime = objectState.unpackLong(); _lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { // can assume the assumptionTime is missing - make it now _lastActiveTime = new Date(); } } return result; }
public boolean save_state (OutputObjectState os, int ot) { // do the other stuff boolean result = super.save_state(os,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { os.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean restore_state (InputObjectState objectState, int ot) { // do the other stuff boolean result = super.restore_state(objectState,ot); if (result) { try { long oldtime = objectState.unpackLong(); _lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { // can assume the assumptionTime is missing - make it now _lastActiveTime = new Date(); } } return result; }