public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack from input object state " + os, e); result = false; } return result; }
public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { result = false; } return result; }
public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { result = false; } return result; }
public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack from input object state " + os, e); result = false; } return result; }
public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack from input object state " + os, e); result = false; } return result; }
public final boolean unpackFrom(InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack from input object state " + os, e); result = false; } return result; }
public final boolean unpackFrom (InputObjectState os) { boolean result = false; try { if (_theXid == null) _theXid = new XID(); _theXid.formatID = os.unpackInt(); _theXid.gtrid_length = os.unpackInt(); _theXid.bqual_length = os.unpackInt(); _theXid.data = os.unpackBytes(); hashCode = getHash(_theXid); result = true; } catch (Exception e) { result = false; } return result; }
/** * Carefully restore the state of a Lock. * * @return <code>true</code> if successful, <code>false</code> otherwise. */ public boolean restore_state (InputObjectState os, int ot) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("Lock::restore_state(" + os + ", " + ot + ")"); } ActionHierarchy ah = new ActionHierarchy(0); try { currentStatus = os.unpackInt(); lMode = os.unpackInt(); ah.unpack(os); owners = ah; return true; } catch (IOException e) { return false; } }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); } }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restoreState(InputObjectState os) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restoreState(os); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
/** * 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 ; }
public boolean restoreState(InputObjectState os) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); committed = copy.unpackBoolean(); xidImple = new XidImple(XidImple.unpack(copy)); return super.restoreState(os); } catch (IOException e) { return false; } }
public RecoverConnectableAtomicAction(String type, Uid rcvUid, InputObjectState os) throws ObjectStoreException, IOException { super(rcvUid); this.recoveringAs = type; // Unpack BasicAction::save_state preamble Header hdr = new Header(); unpackHeader(os, hdr); os.unpackBoolean(); // FYI pastFirstParticipant // Take a look at the first record type int record_type = os.unpackInt(); if (record_type == RecordType.COMMITMARKABLERESOURCE) { // Its one we are interested in jndiName = os.unpackString(); xid = XidImple.unpack(os); hasCompleted = os.unpackBoolean(); } }
public RecoverConnectableAtomicAction(String type, Uid rcvUid, InputObjectState os) throws ObjectStoreException, IOException { super(rcvUid); this.recoveringAs = type; // Unpack BasicAction::save_state preamble Header hdr = new Header(); unpackHeader(os, hdr); os.unpackBoolean(); // FYI pastFirstParticipant // Take a look at the first record type int record_type = os.unpackInt(); if (record_type == RecordType.COMMITMARKABLERESOURCE) { // Its one we are interested in jndiName = os.unpackString(); xid = XidImple.unpack(os); hasCompleted = os.unpackBoolean(); if (hasCompleted) { wasCommitted = os.unpackBoolean(); } } }
public RecoverConnectableAtomicAction(String type, Uid rcvUid, InputObjectState os) throws ObjectStoreException, IOException { super(rcvUid); this.recoveringAs = type; // Unpack BasicAction::save_state preamble Header hdr = new Header(); unpackHeader(os, hdr); os.unpackBoolean(); // FYI pastFirstParticipant // Take a look at the first record type int record_type = os.unpackInt(); if (record_type == RecordType.COMMITMARKABLERESOURCE) { // Its one we are interested in jndiName = os.unpackString(); xid = XidImple.unpack(os); hasCompleted = os.unpackBoolean(); if (hasCompleted) { wasCommitted = os.unpackBoolean(); } } }
public RecoverConnectableAtomicAction(String type, Uid rcvUid, InputObjectState os) throws ObjectStoreException, IOException { super(rcvUid); this.recoveringAs = type; // Unpack BasicAction::save_state preamble Header hdr = new Header(); unpackHeader(os, hdr); os.unpackBoolean(); // FYI pastFirstParticipant // Take a look at the first record type int record_type = os.unpackInt(); if (record_type == RecordType.COMMITMARKABLERESOURCE) { // Its one we are interested in jndiName = os.unpackString(); xid = XidImple.unpack(os); hasCompleted = os.unpackBoolean(); if (hasCompleted) { wasCommitted = os.unpackBoolean(); } } }