public boolean beforeCompletion () { if (_resourceHandle != null) { try { _resourceHandle.beforeCompletion(); return true; } catch (Exception ex) { return false; } } else return false; }
public boolean afterCompletion (int status) { if (_resourceHandle != null) { try { _resourceHandle.afterCompletion(convertStatus(status)); } catch (Exception ex) { } return true; } return false; }
_resourceHandle.cancel();
_resourceHandle.confirmOnePhase();
_resourceHandle.forget();
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; }
Vote res = _resourceHandle.prepare();
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; }
_resourceHandle.confirm();
Participant participant = (Participant) pr.value(); if (participantId.equals(participant.id()))
public boolean beforeCompletion () { if (_resourceHandle != null) { try { _resourceHandle.beforeCompletion(); return true; } catch (Exception ex) { return false; } } else return false; }
public boolean afterCompletion (int status) { if (_resourceHandle != null) { try { _resourceHandle.afterCompletion(convertStatus(status)); } catch (Exception ex) { } return true; } return false; }
_resourceHandle.cancel();
_resourceHandle.confirmOnePhase();
_resourceHandle.forget();
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; }
Vote res = _resourceHandle.prepare();
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; }
_resourceHandle.confirm();
Participant participant = (Participant) pr.value(); if (participantId.equals(participant.id()))