public InputObjectState read_state (Uid u, String tName) throws LockStoreException { if (txojLogger.aitLogger.isDebugEnabled()) { txojLogger.aitLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_LOCK_STORE, "BasicPersistentLockStore.read_state("+u+", "+tName+")"); } try { return _lockStore.read_committed(u, tName); } catch (ObjectStoreException e) { throw new LockStoreException("Persistent store error.", e); } }
protected StateManagerInfo(ObjectStore os, Uid uid, String type) { super(uid); try { unpackHeader(os.read_committed(uid, type)); } catch (IOException e) { if (tsLogger.arjLoggerI18N.isInfoEnabled()) tsLogger.arjLoggerI18N.info("org.jboss.jbosstm.tools.jmx.osb.MbState.m_1", new Object[] { e.getMessage() }); } catch (ObjectStoreException e) { if (tsLogger.arjLoggerI18N.isInfoEnabled()) tsLogger.arjLoggerI18N.info("org.jboss.jbosstm.tools.jmx.osb.MbState.m_1", new Object[] { e.getMessage() }); } }
private boolean restoreMe() { try { InputObjectState objstate = getStore().read_committed(_uid, _pseudoTypeName); if (objstate == null) // not in object store any more return false; if ( restore_state(objstate)) { return true; } jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.recovery.contact.FactoryContactItem_5"); } catch (ObjectStoreException exo) { // this shouldn't happen, because we shouldn't be looking for a factory // that was never recorded jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.recovery.contact.FactoryContactItem_6"); } return false; }
public boolean moveEntry (Uid newUid) throws ObjectStoreException { InputObjectState state = _objectStore.read_committed(newUid, _typeName); boolean res = false; if (state != null) // just in case recovery // kicked-in { boolean moved = _objectStore.write_committed(newUid, _movedTypeName, new OutputObjectState(state)); if (!moved) { tsLogger.arjLoggerI18N.warn( "com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner_3", new Object[] { newUid }); } else res = _objectStore.remove_committed(newUid, _typeName); } return res; }
InputObjectState objstate = getStore().read_committed( _pidUid, _typeName ) ;
private final boolean loadState() { setObjectStore(); InputObjectState os = null; try { os = _objStore.read_committed(_theUid, type()); } catch (Exception e) { if (jtaLogger.loggerI18N.isWarnEnabled()) { jtaLogger.loggerI18N .warn( "com.arjuna.ats.internal.jta.resources.jts.orbspecific.loadstateread", e); } os = null; } if (os != null) { _valid = restoreState(os); os = null; } else _valid = false; return _valid; }
InputObjectState iState = currentStore.read_committed(new Uid( JacOrbRCServiceInit.uid4Recovery), JacOrbRCServiceInit.type());
.read_committed(objectUid, type());
InputObjectState oState = aaStore.read_committed(getSavingUid(), type());