private Participant recreateParticipant(final InputObjectState inputObjectState, final String applicationId) throws IOException { final ParticipantDeserializer deserializer = deserializers.get(applicationId); final byte[] participantBytes = inputObjectState.unpackBytes(); Participant participant = deserializer.recreate(participantBytes); if (participant == null) { final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(participantBytes); final ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream); participant = deserializer.deserialize(objectInputStream); } return participant; }
public static final Xid unpack(InputObjectState os) throws IOException { if (os.unpackBoolean()) { XidImple x = new XidImple(); x.unpackFrom(os); return x; } else { try { byte[] b = os.unpackBytes(); ByteArrayInputStream s = new ByteArrayInputStream(b); ObjectInputStream o = new ObjectInputStream(s); Xid x = (Xid) o.readObject(); return x; } catch (Exception e) { IOException ioException = new IOException(e.toString()); ioException.initCause(e); throw ioException; } } }
public static final Xid unpack(InputObjectState os) throws IOException { if (os.unpackBoolean()) { XidImple x = new XidImple(); x.unpackFrom(os); return x; } else { try { byte[] b = os.unpackBytes(); ByteArrayInputStream s = new ByteArrayInputStream(b); ObjectInputStream o = new ObjectInputStream(s); Xid x = (Xid) o.readObject(); return x; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack input object state " + os, e); IOException ioException = new IOException(e.toString()); ioException.initCause(e); throw ioException; } } }
public static final Xid unpack(InputObjectState os) throws IOException { if (os.unpackBoolean()) { XidImple x = new XidImple(); x.unpackFrom(os); return x; } else { try { byte[] b = os.unpackBytes(); ByteArrayInputStream s = new ByteArrayInputStream(b); ObjectInputStream o = new ObjectInputStream(s); Xid x = (Xid) o.readObject(); return x; } catch (Exception e) { jtaLogger.logger.debug("Can't unpack input object state " + os, e); IOException ioException = new IOException(e.toString()); ioException.initCause(e); throw ioException; } } }
public static final Xid unpack(InputObjectState os) throws IOException { if (os.unpackBoolean()) { XidImple x = new XidImple(); x.unpackFrom(os); return x; } else { try { byte[] b = os.unpackBytes(); ByteArrayInputStream s = new ByteArrayInputStream(b); ObjectInputStream o = new ObjectInputStream(s); Xid x = (Xid) o.readObject(); return x; } catch (Exception e) { IOException ioException = new IOException(e.toString()); ioException.initCause(e); throw ioException; } } }
void unpackHeader(InputObjectState os) throws IOException { if (os != null) { state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); txId = new Uid(txIdBytes); if (state.equals("#ARJUNA#")) { if (!txId.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } } }
void unpackHeader(InputObjectState os) throws IOException { if (os != null) { state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); txId = new Uid(txIdBytes); if (state.equals("#ARJUNA#")) { if (!txId.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
protected HeaderState unpackHeader(InputObjectState os) throws IOException { HeaderState hs = null; if (os != null) { String state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); Uid txUid = new Uid(txIdBytes); Uid processUid = null; long birthDate = 0; if (state.equals("#ARJUNA#")) { if (!txUid.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } hs = new HeaderState(state, txUid, processUid, birthDate); } return hs; } }
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) { 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) { result = false; } return result; }