/** * @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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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; }