protected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException { if (!storeValid()) return null; else return _theImple.read_state(objUid, tName, ft, getTableName()); }
public int currentState(Uid objUid, String tName) throws ObjectStoreException { if (storeValid()) return _theImple.currentState(objUid, tName, getTableName()); else return ObjectStore.OS_UNKNOWN; }
protected boolean write_state(Uid objUid, String tName, OutputObjectState state, int s) throws ObjectStoreException { if (!storeValid()) return false; else return _theImple.write_state(objUid, tName, state, s, getTableName()); }
public void run() { _purger.writeRemovalEntries(); // flush everything in the cache first. _purger.purge(); }
public String toString() { return "LogInstance < " + _logName + ", " + _typeName + ", " + numberOfUsers() + ", " + remaining() + " >"; }
protected boolean removeState (Uid objUid, String name, int ft) throws ObjectStoreException { return super.remove_state(objUid, name, ft); }
protected String genPathName (Uid objUid, String tName, int ft) throws ObjectStoreException { String fname = super.genPathName(objUid, tName, ft); if (ft == StateStatus.OS_UNCOMMITTED) fname = fname + HIDDENCHAR; return fname; }
@Override public Boolean run() throws Exception { return write_state(u, tn, buff, s); } });
protected boolean writeState (Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException { return super.write_state(objUid, tName, state, ft); }
public void purge() { try { _objStore.truncateLogs(true); } catch (final Exception ex) { } }
protected boolean commitState (Uid objUid, String tName) throws ObjectStoreException { return super.commit_state(objUid, tName); }
public void sync () throws java.io.SyncFailedException, ObjectStoreException { CacheStore._storeManager.flush(); }
@Override public InputObjectState run() throws Exception { return read_state(u, tn, s); } });
public boolean commit_state (Uid objUid, String tName) throws ObjectStoreException { return CacheStore._storeManager.addWork(this, AsyncStore.COMMIT, objUid, tName, null, CacheStore.NO_STATE_TYPE); }
@Override public Boolean run() { return renameFromToInternal(from, to); } });
public void run() { _purger.writeRemovalEntries(); // flush everything in the cache first. _purger.purge(); }
protected boolean removeState (Uid objUid, String name, int ft) throws ObjectStoreException { return super.remove_state(objUid, name, ft); }
protected String genPathName (Uid objUid, String tName, int ft) throws ObjectStoreException { String fname = super.genPathName(objUid, tName, ft); if (ft == StateStatus.OS_UNCOMMITTED) fname = fname + HIDDENCHAR; return fname; }
protected boolean removeState (Uid objUid, String name, int ft) throws ObjectStoreException { return super.remove_state(objUid, name, ft); }
protected String genPathName (Uid objUid, String tName, int ft) throws ObjectStoreException { String fname = super.genPathName(objUid, tName, ft); if (ft == StateStatus.OS_UNCOMMITTED) fname = fname + HIDDENCHAR; return fname; }