public boolean save_state (OutputObjectState os, int ot) { try { if (_theXid != null) os.packBoolean(true); else os.packBoolean(false); _theXid.packInto(os); return super.save_state(os, ot); } catch (IOException e) { e.printStackTrace(); } return false; }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror(xid)); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror()); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror()); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror(xid)); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror(xid)); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror(xid)); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public boolean save_state (OutputObjectState os, int ot) { try { if (_theXid != null) { os.packBoolean(true); _theXid.packInto(os); } else { os.packBoolean(false); } return super.save_state(os, ot); } catch (IOException e) { jtaxLogger.i18NLogger.warn_cant_save_state(os, ot, e); } return false; }
public boolean save_state (OutputObjectState os, int t) { if (_theXid != null) { try { os.packBoolean(true); ((XidImple) _theXid).packInto(os); } catch (IOException ex) { return false; } } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int ot) { try { if (_recoveryCoordinator != null) { os.packBoolean(true); os.packString(ORBManager.getORB().orb().object_to_string(_recoveryCoordinator)); } else os.packBoolean(false); return super.save_state(os, ot); } catch (IOException e) { jtsLogger.i18NLogger.warn_orbspecific_interposition_coordinator_generror("ServerTransaction.save_state", e); } return false; }
/** * Save host/port pair to the Object Store. */ private boolean save_state ( OutputObjectState objstate ) { boolean ret_status = false ; try { objstate.packString( _host ) ; objstate.packInt( _port ) ; objstate.packBoolean( _markedDead ) ; if ( _markedDead ) { objstate.packLong( _deadTime.getTime() ) ; } ret_status = true ; } catch ( IOException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_2(ex); } return ret_status ; }
/** * Save host/port pair to the Object Store. */ private boolean save_state ( OutputObjectState objstate ) { boolean ret_status = false ; try { objstate.packString( _host ) ; objstate.packInt( _port ) ; objstate.packBoolean( _markedDead ) ; if ( _markedDead ) { objstate.packLong( _deadTime.getTime() ) ; } ret_status = true ; } catch ( IOException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_2(ex); } return ret_status ; }
/** * Save host/port pair to the Object Store. */ private boolean save_state ( OutputObjectState objstate ) { boolean ret_status = false ; try { objstate.packString( _host ) ; objstate.packInt( _port ) ; objstate.packBoolean( _markedDead ) ; if ( _markedDead ) { objstate.packLong( _deadTime.getTime() ) ; } ret_status = true ; } catch ( IOException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_2(ex); } return ret_status ; }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int ot) { try { if (_recoveryCoordinator != null) { os.packBoolean(true); os.packString(ORBManager.getORB().orb().object_to_string(_recoveryCoordinator)); } else os.packBoolean(false); return super.save_state(os, ot); } catch (IOException e) { if (jtsLogger.logger.isWarnEnabled()) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.interposition.coordinator.generror", new Object[] { "ServerTransaction.save_state", e }); } } return false; }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }
public boolean save_state (OutputObjectState os, int t) { try { // pack the header first for the benefit of the tooling packHeader(os, new Header(get_uid(), Utility.getProcessUid())); if (_theXid != null) { os.packBoolean(true); ((XidImple) _theXid).packInto(os); os.packString(_parentNodeName); } else os.packBoolean(false); } catch (IOException ex) { return false; } return super.save_state(os, t); }