public ObjectStateWrapper read_committed (Uid u, String tn) throws ObjectStoreException { InputObjectState ios = ps.read_committed (u, tn); return new ObjectStateWrapper(ios); }
private final void commit () { try { _participantStore.commit_state(_ourUid, _type); } catch (ObjectStoreException e) { txojLogger.i18NLogger.warn_recovery_RecoveredTransactionalObject_10(_ourUid, e); } }
public ObjectStateWrapper read_uncommitted (Uid u, String tn) throws ObjectStoreException { InputObjectState ios = ps.read_uncommitted (u, tn); return new ObjectStateWrapper(ios); }
+ order()); topLevelState = new OutputObjectState(sm.get_uid(), sm.type()); && (!targetParticipantStore.fullCommitNeeded() && (sm.save_state(topLevelState, ObjectType.ANDPERSISTENT)) && (topLevelState.size() <= PersistenceRecord.MAX_OBJECT_SIZE))) OutputObjectState dummy = new OutputObjectState( Uid.nullUid(), null); targetParticipantStore.write_uncommitted(sm.get_uid(), sm.type(), dummy); result = TwoPhaseOutcome.PREPARE_OK; tsLogger.i18NLogger.warn_PersistenceRecord_21(e); if (sm.deactivate(targetParticipantStore.getStoreName(), false)) tsLogger.i18NLogger.warn_PersistenceRecord_7(); tsLogger.i18NLogger.warn_PersistenceRecord_8();
BasicAction action = BasicAction.Current(); if (action.add(dr) != AddOutcome.AR_ADDED) { dr = null; tsLogger.i18NLogger.warn_StateManager_6(action.get_uid()); result = participantStore.remove_committed(get_uid(), type()); destroyed(); tsLogger.i18NLogger.warn_StateManager_7(e); tsLogger.i18NLogger.warn_StateManager_8();
+ get_uid()); ParticipantStore aaStore = getStore(); OutputObjectState oState = new OutputObjectState(); if (save_state(oState, ObjectType.ANDPERSISTENT)) deactivated = aaStore.write_committed(getSavingUid(), type(), oState); tsLogger.i18NLogger.warn_coordinator_BasicAction_5a(get_uid(), type());
+ order()); uid = order(); type = getTypeOfObject(); uid = topLevelState.stateUid(); type = topLevelState.type(); if (!targetParticipantStore.remove_uncommitted(uid, type)) { tsLogger.i18NLogger.warn_PersistenceRecord_19(); tsLogger.i18NLogger.warn_PersistenceRecord_20(e);
if ((targetParticipantStore != null) && (objectUid.notEquals(Uid.nullUid()))) if (targetParticipantStore.remove_committed(objectUid, typeName)) tsLogger.i18NLogger.warn_DisposeRecord_5(e);
|| loadObjectState()) setupStore(rootName); String tn = type(); OutputObjectState newState = new OutputObjectState(objectUid, tn); result = participantStore.write_committed(objectUid, tn, newState); else result = participantStore.write_uncommitted(objectUid, tn, newState); tsLogger.i18NLogger.warn_StateManager_3(e); tsLogger.i18NLogger.warn_StateManager_4();
/** * Write host/port pair to the ObjectStore using * the process Uid as a unique identifier. */ private boolean saveThis() { boolean ret_status = false ; try { OutputObjectState objstate = new OutputObjectState(); if ( save_state(objstate) ) { ret_status = getStore().write_committed ( _pidUid, _typeName, objstate ) ; } } catch ( ObjectStoreException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_2(ex); } return ret_status ; }
private synchronized void initialise () { if (!_initialised) { _initialised = true; if (!_runWithoutDaemon) { try { ParticipantStore participantStore = StoreManager.getCommunicationStore(); InputObjectState iState = participantStore.read_committed(new Uid( JavaIdlRCServiceInit.uid4Recovery), JavaIdlRCServiceInit.type()); if (iState != null) ref_ReCoo = iState.unpackString(); else jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_4(); } catch (java.io.FileNotFoundException ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_4(); } catch (Exception ex) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_JacOrbRCManager_5(ex); } } } }
/** * Destroy the host/port pair for the specified process Uid. */ public static boolean removeThis( Uid pidUid ) { boolean ret_status = false ; try { ret_status = getStore().remove_committed( pidUid, _typeName ) ; } catch ( ObjectStoreException ex ) { tsLogger.i18NLogger.warn_recovery_TransactionStatusManagerItem_1(ex); } return ret_status ; }
public boolean remove_state (Uid u, String tName) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("BasicPersistentLockStore.remove_state(" + u + ", " + tName + ")"); } try { return _lockStore.remove_committed(u, tName); } catch (ObjectStoreException e) { return false; } }
private final void rollback () { try { _participantStore.remove_uncommitted(_ourUid, _type); } catch (ObjectStoreException e) { txojLogger.i18NLogger.warn_recovery_RecoveredTransactionalObject_9(_ourUid, e); } }
public boolean write_committed (Uid u, String tName, OutputObjectState state) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("BasicPersistentLockStore.write_committed(" + u + ", " + tName + ", " + state + ")"); } try { return _lockStore.write_committed(u, LOCK_ROOT+tName, state); } catch (ObjectStoreException e) { return false; } }
public boolean fullCommitNeeded () { return ps.fullCommitNeeded (); } }
public boolean write_uncommitted (Uid u, String tn, OutputObjectStateWrapper buff) throws ObjectStoreException { return ps.write_uncommitted (u, tn, buff.getOOS()); }
topLevelState = new OutputObjectState(sm.get_uid(), sm.type()); if (writeToLog || (!targetParticipantStore.fullCommitNeeded() && (sm.save_state(topLevelState, ObjectType.ANDPERSISTENT)) && (topLevelState.size() <= PersistenceRecord.MAX_OBJECT_SIZE))) OutputObjectState dummy = new OutputObjectState(Uid.nullUid(), null); targetParticipantStore.write_uncommitted(sm.get_uid(), sm.type(), dummy); result = TwoPhaseOutcome.PREPARE_OK; tsLogger.i18NLogger.warn_PersistenceRecord_21(e); if (sm.deactivate(targetParticipantStore.getStoreName(), false)) tsLogger.i18NLogger.warn_PersistenceRecord_7(); tsLogger.i18NLogger.warn_PersistenceRecord_8();
BasicAction action = BasicAction.Current(); if (action.add(dr) != AddOutcome.AR_ADDED) { dr = null; tsLogger.i18NLogger.warn_StateManager_6(action.get_uid()); result = participantStore.remove_committed(get_uid(), type()); destroyed(); tsLogger.i18NLogger.warn_StateManager_7(e); tsLogger.i18NLogger.warn_StateManager_8();
+ get_uid()); ParticipantStore aaStore = getStore(); OutputObjectState oState = new OutputObjectState(); if (save_state(oState, ObjectType.ANDPERSISTENT)) deactivated = aaStore.write_committed(getSavingUid(), type(), oState); tsLogger.i18NLogger.warn_coordinator_BasicAction_5a(get_uid(), type());