_resourceHandle.cancel();
_resourceHandle.confirmOnePhase();
Vote res = _resourceHandle.prepare();
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; }
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.forget();
Participant participant = (Participant) pr.value(); if (participantId.equals(participant.id()))
_resourceHandle.confirm();
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; }
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.forget();
Participant participant = (Participant) pr.value(); if (participantId.equals(participant.id()))
_resourceHandle.confirm();
_resourceHandle.cancel();
_resourceHandle.confirmOnePhase();
Vote res = _resourceHandle.prepare();