/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects * @message com.arjuna.ats.internal.arjuna.objectstore.ActionStore_1 * [com.arjuna.ats.internal.arjuna.objectstore.ActionStore_1] - * ActionStore.currentState({0}, {1}) - returning {2} */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = ObjectStore.OS_UNKNOWN; if (storeValid()) { String path = genPathName(objUid, tName, ObjectStore.OS_ORIGINAL); if (exists(path)) theState = ObjectStore.OS_COMMITTED; path = null; } if (tsLogger.arjLoggerI18N.isDebugEnabled()) { tsLogger.arjLoggerI18N.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "com.arjuna.ats.internal.arjuna.objectstore.ActionStore_1", new Object[] { objUid, tName, ObjectStore.stateStatusString(theState) }); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; /* Bail out if the object store is not set up */ if (!storeValid()) return false; if (currentState(objUid, tName) == ObjectStore.OS_COMMITTED) result = true; return result; }
public ActionStore(String locationOfStore, int shareStatus) { super(shareStatus); try { setupStore(locationOfStore); } catch (ObjectStoreException e) { if (tsLogger.arjLoggerI18N.isWarnEnabled()) tsLogger.arjLogger.warn(e); super.makeInvalid(); throw new com.arjuna.ats.arjuna.exceptions.FatalError(e.toString(), e); } }
public ActionStore(int shareStatus) { super(shareStatus); try { setupStore(arjPropertyManager.getObjectStoreEnvironmentBean() .getLocalOSRoot()); } catch (ObjectStoreException e) { if (tsLogger.arjLoggerI18N.isWarnEnabled()) tsLogger.arjLogger.warn(e); super.makeInvalid(); throw new com.arjuna.ats.arjuna.exceptions.FatalError(e.toString(), e); } }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }
/** * @return current state of object. Assumes that genPathName allocates * enough extra space to allow extra chars to be added. Action * stores only store committed objects */ public int currentState (Uid objUid, String tName) throws ObjectStoreException { int theState = StateStatus.OS_UNKNOWN; String path = genPathName(objUid, tName, StateType.OS_ORIGINAL); if (exists(path)) theState = StateStatus.OS_COMMITTED; path = null; if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.currentState("+objUid+", "+tName+") - returning "+ StateStatus.stateStatusString(theState)); } return theState; }
/** * Commit a previous write_state operation which was made with the SHADOW * StateType argument. This is achieved by renaming the shadow and removing * the hidden version. */ public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("ActionStore.commit_state(" + objUid + ", " + tName + ")"); } boolean result = false; if (currentState(objUid, tName) == StateStatus.OS_COMMITTED) result = true; return result; }