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; }
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; }
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 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 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 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; }
/** * 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 ; }
/** * 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 restore_state (InputObjectState os, int t) { boolean result = super.restore_state(os, t); if (result) { try { String resourcehandleImplClassName = os.unpackString(); Class clazz = ClassLoaderHelper.forName(ParticipantRecord.class, resourcehandleImplClassName); _resourceHandle = (Participant)clazz.newInstance(); result = _resourceHandle.restore_state(os); if (result) _timeout = os.unpackLong(); /* * TODO: unpack qualifiers and coord id. */ } catch (Exception ex) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_13(ex); result = false; } } return result; }
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; } }
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; } }