Refine search
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
public boolean restore_state(InputObjectState os, int t) { try { txId = os.unpackString(); prepared = os.unpackBoolean(); participantURI = os.unpackString(); coordinatorURI = os.unpackString(); recoveryURI = os.unpackString(); coordinatorID = os.unpackString(); status = TxStatus.fromStatus(os.unpackString()); terminateURI = os.unpackString(); commitURI = os.unpackString(); prepareURI = os.unpackString(); rollbackURI = os.unpackString(); commitOnePhaseURI = os.unpackString(); if (commitURI == null) { prepareURI = commitURI = rollbackURI = commitOnePhaseURI = terminateURI; } if (log.isInfoEnabled()) log.infof("restore_state %s", terminateURI); return super.restore_state(os, t); } catch (Exception e) { return false; } }
_propagateRecord = os.unpackBoolean(); _cachedUid = UidHelper.unpackFrom(os); _stringifiedResourceHandle = os.unpackString(); _recCoordUid = UidHelper.unpackFrom(os);
protected HeaderState unpackHeader(InputObjectState os) throws IOException { boolean haveRecCoord = os.unpackBoolean(); if (haveRecCoord) os.unpackString(); // read ior return super.unpackHeader(os); } }
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
commitMarkableJndiName = os.unpackString(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("unpack: " + commitMarkableJndiName); if (os.unpackBoolean()) { committed = os.unpackBoolean(); productName = os.unpackString(); productVersion = os.unpackString(); res = super.restore_state(os, t); } catch (Exception e) {
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
commitMarkableJndiName = os.unpackString(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("unpack: " + commitMarkableJndiName); if (os.unpackBoolean()) { committed = os.unpackBoolean(); productName = os.unpackString(); productVersion = os.unpackString(); res = super.restore_state(os, t); } catch (Exception e) {
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
commitMarkableJndiName = os.unpackString(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("unpack: " + commitMarkableJndiName); if (os.unpackBoolean()) { committed = os.unpackBoolean(); productName = os.unpackString(); productVersion = os.unpackString(); res = super.restore_state(os, t); } catch (Exception e) {
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * Data items must be unpacked in the same order that they were packed. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
commitMarkableJndiName = os.unpackString(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("unpack: " + commitMarkableJndiName); if (os.unpackBoolean()) { committed = os.unpackBoolean(); productName = os.unpackString(); productVersion = os.unpackString(); res = super.restore_state(os, t); } catch (Exception e) {
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
afield.set(_theObject, new Boolean(os.unpackBoolean())); else if (afield.getType().equals(Byte.class)) afield.set(_theObject, new Byte(os.unpackByte())); afield.set(_theObject, new Character(os.unpackChar())); else if (afield.getType().equals(String.class)) afield.set(_theObject, os.unpackString()); else if (afield.getType().isAnnotationPresent(Transactional.class)) return unpackTransactionalInstance(afield, os);
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * Data items must be unpacked in the same order that they were packed. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
afield.set(_theObject, new Boolean(os.unpackBoolean())); else if (afield.getType().equals(Byte.class)) afield.set(_theObject, new Byte(os.unpackByte())); afield.set(_theObject, new Character(os.unpackChar())); else if (afield.getType().equals(String.class)) afield.set(_theObject, os.unpackString()); else if (afield.getType().isAnnotationPresent(Transactional.class)) return unpackTransactionalInstance(afield, os);
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * Data items must be unpacked in the same order that they were packed. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
commitMarkableJndiName = os.unpackString(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("unpack: " + commitMarkableJndiName); if (os.unpackBoolean()) { committed = os.unpackBoolean(); productName = os.unpackString(); productVersion = os.unpackString(); res = super.restore_state(os, t); } catch (Exception e) {
/** * During recovery, the transaction log is given to the recovery system and * it will recreate a transaction instance to perform necessary recovery * actions. This transaction will recreate the intentions list and give each * recreated AbstractRecord the state that that was saved during transaction * persistence. The base class will restore information that it needs from * the log. * * Data items must be unpacked in the same order that they were packed. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public boolean restore_state (InputObjectState os, int i) { typeOfObject = null; try { uidOfObject = UidHelper.unpackFrom(os); typeOfObject = os.unpackString(); return true; } catch (IOException e) { return false; } }
/** * Retrieve host/port pair from the Object Store. */ private boolean restore_state ( InputObjectState objstate ) { boolean ret_status = false ; try { _host = objstate.unpackString() ; _port = objstate.unpackInt() ; _markedDead = objstate.unpackBoolean() ; if ( _markedDead ) { long deadtime = objstate.unpackLong() ; _deadTime = new Date( deadtime ) ; } ret_status = true ; } catch ( IOException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_3(ex); } return ret_status ; }