public abstract class FileLockingStore extends FileSystemStore
doSync, scanZeroLengthFiles, syncWrites
_objectStoreRoot, shareStatus
Constructor and Description |
---|
FileLockingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
lock(File fd,
int lmode,
boolean create)
Lock files as we would do on a Unix system.
|
protected abstract InputObjectState |
read_state(Uid u,
String tn,
int s) |
protected abstract boolean |
remove_state(Uid u,
String tn,
int s) |
protected boolean |
unlock(File fd)
Unlock the file in the object store.
|
protected abstract boolean |
write_state(Uid u,
String tn,
OutputObjectState buff,
int s) |
addToCache, allObjUids, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, genPathName, getStoreName, openAndLock, read_committed, read_uncommitted, remove_committed, remove_uncommitted, removeFromCache, removeFromCache, renameFromTo, renameFromToInternal, supressEntry, synchronousWrites, truncate, write_committed, write_uncommitted
allObjUids, fullCommitNeeded, initialise, isType, locateStore, revealedId, shareState, start, stop, storeDir, storeRoot, sync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit_state
currentState, hide_state, reveal_state
public FileLockingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
protected abstract InputObjectState read_state(Uid u, String tn, int s) throws ObjectStoreException
read_state
in class FileSystemStore
ObjectStoreException
protected abstract boolean remove_state(Uid u, String tn, int s) throws ObjectStoreException
remove_state
in class FileSystemStore
ObjectStoreException
protected abstract boolean write_state(Uid u, String tn, OutputObjectState buff, int s) throws ObjectStoreException
write_state
in class FileSystemStore
ObjectStoreException
protected boolean lock(File fd, int lmode, boolean create)
lock
in class FileSystemStore
protected boolean unlock(File fd)
FileSystemStore
unlock
in class FileSystemStore
Copyright © 2021 JBoss by Red Hat. All rights reserved.