public static AbstractRecord create () { return new ParticipantRecord(); }
/** * The record is being driven through nested commit and is the only * resource. * */ public int nestedOnePhaseCommit () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_9(order(), ex6); return TwoPhaseOutcome.FINISH_ERROR; } }
Participant participant = (Participant) pr.value(); pr.readonly(); else pr.rolledback();
Participant participant = (Participant) pr.value(); pr.readonly(); else pr.rolledback();
/** * The record is being driven through nested commit and is the only * resource. * */ public int nestedOnePhaseCommit () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_9(order(), ex6); return TwoPhaseOutcome.FINISH_ERROR; } }
public static AbstractRecord create () { return new ParticipantRecord(); }
/** * The record is being driven through nested prepare. * */ public int nestedPrepare () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.PREPARE_NOTOK; } catch (Exception e6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_5(order(), e6); return TwoPhaseOutcome.HEURISTIC_HAZARD; } }
/** * Enrol the specified participant with the coordinator associated with the * current thread. * * @param act The participant. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateParticipantException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidParticipantException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistParticipant (Participant act) throws WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException { if (act == null) throw new InvalidParticipantException(); AbstractRecord rec = new ParticipantRecord(act, new Uid()); if (add(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }
/** * The record is being driven through nested commit. * */ public int nestedCommit () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_4(order(), ex6); return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Enrol the specified participant with the coordinator associated with the * current thread. * * @param act The participant. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateParticipantException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidParticipantException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistParticipant (Participant act) throws WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException { if (act == null) throw new InvalidParticipantException(); AbstractRecord rec = new ParticipantRecord(act, new Uid()); if (add(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }
/** * The record is being driven through nested rollback. * */ // TODO public int nestedAbort () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_3(order(), ex6); ex6.printStackTrace(); return TwoPhaseOutcome.FINISH_ERROR; } }
/** * The record is being driven through nested rollback. * */ // TODO public int nestedAbort () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_3(order(), ex6); ex6.printStackTrace(); return TwoPhaseOutcome.FINISH_ERROR; } }
/** * The record is being driven through nested commit. * */ public int nestedCommit () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.FINISH_ERROR; } catch (Exception ex6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_4(order(), ex6); return TwoPhaseOutcome.FINISH_ERROR; } }
/** * The record is being driven through nested prepare. * */ public int nestedPrepare () { try { if (_resourceHandle != null) { return TwoPhaseOutcome.FINISH_ERROR; } else return TwoPhaseOutcome.PREPARE_NOTOK; } catch (Exception e6) { wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_5(order(), e6); return TwoPhaseOutcome.HEURISTIC_HAZARD; } }
/** * Constructor. * * @param theResource * is the proxy that allows us to call out to the object. * */ public ParticipantRecord (Participant theResource, Uid id) { super(id, null, ObjectType.ANDPERSISTENT); _resourceHandle = theResource; _timeout = 0; _coordId = new CoordinatorIdImple(id); if (theResource == null) wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_1(order()); }
/** * Constructor. * * @param theResource * is the proxy that allows us to call out to the object. * */ public ParticipantRecord (Participant theResource, Uid id) { super(id, null, ObjectType.ANDPERSISTENT); _resourceHandle = theResource; _timeout = 0; _coordId = new CoordinatorIdImple(id); if (theResource == null) wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_1(order()); }
wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_6(order(), ex6);
wscfLogger.i18NLogger.warn_model_twophase_arjunacore_ParticipantRecord_6(order(), ex6);