public boolean save_state(final OutputObjectState objectState, final int ot) { final boolean result = super.save_state(objectState, ot); if (result) { lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (final IOException ex) { } } return result; }
public boolean save_state(final OutputObjectState objectState, final int ot) { final boolean result = super.save_state(objectState, ot); if (result) { lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (final IOException ex) { } } return result; }
public boolean save_state (OutputObjectState os, int ot) { // do the other stuff boolean result = super.save_state(os,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { os.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState os, int ot) { // do the other stuff boolean result = super.save_state(os,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { os.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { objectState.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState,ot); if (result ) { // a re-write means we have just been active _lastActiveTime = new Date(); try { objectState.packLong(_lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState, ot); // iff assumed complete, include the time (this should happen only once) if (_typeName != null && result) { Date lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState, ot); // iff assumed complete, include the time (this should happen only once) if (_typeName != null && result) { Date lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState, ot); // iff assumed complete, include the time (this should happen only once) if (_typeName != null && result) { Date lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState, ot); // iff assumed complete, include the time (this should happen only once) if (_typeName != null && result) { Date lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (IOException ex) { } } return result; }
public boolean save_state (OutputObjectState objectState, int ot) { // do the other stuff boolean result = super.save_state(objectState, ot); // iff assumed complete, include the time (this should happen only once) if (_typeName != null && result) { Date lastActiveTime = new Date(); try { objectState.packLong(lastActiveTime.getTime()); } catch (java.io.IOException ex) { } } return result; }
public boolean save_state (OutputObjectState os, int t) { boolean result = super.save_state(os, t); if (result) { try { os.packString(_resourceHandle.getClass().getName()); // TODO: a shorter value whould be more efficient. result = _resourceHandle.save_state(os); if (result) os.packLong(_timeout); /* * TODO: pack qualifiers and coord id. */ } catch (Exception ex) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_14(ex); result = false; } } return result; }
/** * 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 ; }
/** * 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 ; }
/** * 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 ; }