Index

A B C D E F G H I J L M N O P R S T U W 
All Classes and Interfaces|All Packages

A

abort() - Method in interface org.aksw.commons.txn.api.TxnApi
 
abort(Txn) - Method in class org.aksw.commons.txn.impl.TxnHandlerImpl
 
abort(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
accessCache - Variable in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
add(Res) - Method in interface org.aksw.commons.lock.RetryMgr
 
addCommit() - Method in interface org.aksw.commons.txn.api.Txn
 
addCommit() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
addCommit() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
addFinalize() - Method in interface org.aksw.commons.txn.api.Txn
 
addFinalize() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
addFinalize() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
addRollback() - Method in interface org.aksw.commons.txn.api.Txn
 
addRollback() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
addRollback() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
afterPreCommit(Path) - Method in interface org.aksw.commons.txn.impl.TxnHandler
 
applyJournal(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
applyJournalOld(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
Deprecated.

B

basePath - Variable in class org.aksw.commons.lock.LockManagerPath
 
beforePreCommit(Path) - Method in interface org.aksw.commons.txn.impl.TxnHandler
 
beforeUnlock(Path, boolean) - Method in interface org.aksw.commons.txn.impl.TxnHandler
 
begin(boolean) - Method in interface org.aksw.commons.txn.api.TxnApi
 
buildLockGraph() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
Build a bipartite graph between dependencies and locks; i.e.

C

checkIfLockingIsNeeded(boolean) - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
claim() - Method in interface org.aksw.commons.txn.api.Txn
Instruct this TxnMgr to try to claim (i.e.
claim() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
claim() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
cleanupAncestorPath - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
cleanupStaleTxns() - Method in class org.aksw.commons.txn.impl.TxnHandlerImpl
 
cleanupStaleTxns(TxnMgr, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
cleanUpTxn() - Method in interface org.aksw.commons.txn.api.Txn
 
cleanUpTxn() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
cleanUpTxn() - Method in class org.aksw.commons.txn.impl.TxnSerializable
Declare that the resource was accessed by the transaction Upon recovery the resource's state must be checked for whether any actions need to be taken.
commit() - Method in interface org.aksw.commons.txn.api.TxnApi
 
commit(Txn) - Method in class org.aksw.commons.txn.impl.TxnHandlerImpl
 
commit(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
commitFile - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
commitFilename - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
CompoundLock - Class in org.aksw.commons.lock
A lock that is made up of multiple locks.
CompoundLock(List) - Constructor for class org.aksw.commons.lock.CompoundLock
 
compute(TxnApi, boolean, Callable) - Static method in interface org.aksw.commons.txn.api.TxnApi
 
containerCache - Variable in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
ContentSync - Interface in org.aksw.commons.txn.impl
 
create(Path, boolean) - Static method in class org.aksw.commons.txn.impl.FileSyncImpl
 
createLockOwner(String) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
createResourceApi(Path) - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
createResourceApi(Path) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
createSimple(Path) - Static method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
createWithUriToPath(Path) - Static method in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
createWithUrlEncode(Path) - Static method in class org.aksw.commons.txn.impl.ResourceRepoImpl
Create file names by means of urlencoding and prepending a dot ('.')
currentState - Variable in class org.aksw.commons.txn.impl.PathDiffState
 

D

declareAccess() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
Declare that the txn accessed the resource.
declareAccess() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
declareAccess() - Method in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
declareAccessCore() - Method in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
delegates - Variable in class org.aksw.commons.lock.LockManagerCompound
 
deleteResources() - Method in interface org.aksw.commons.txn.api.TxnMgr
Method mainly (or rather only) for testing: Clears all locks and transactions regardless of any concurrent access.
deleteResources() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
Deletes the lock and transaction folders.
deleteTargetFileOnUpdateWithEmptyContent - Variable in class org.aksw.commons.txn.impl.FileSyncImpl
Whether to delete 'targetFile' if the new content is empty
DummyLock - Class in org.aksw.commons.lock.db.impl
 
DummyLock() - Constructor for class org.aksw.commons.lock.db.impl.DummyLock
 

E

end() - Method in interface org.aksw.commons.txn.impl.TxnHandler
 
ensureFolderExists(Path, Callable) - Static method in class org.aksw.commons.txn.impl.FileUtilsExtra
Repeatedly retry to create the given file's parent folder and then perform an action based on that folder.
ensureFolderExists(Path, ThrowingRunnable) - Static method in class org.aksw.commons.txn.impl.FileUtilsExtra
 
ensureParentFolderExists(Path, Callable) - Static method in class org.aksw.commons.txn.impl.FileUtilsExtra
 
ensureParentFolderExists(Path, ThrowingRunnable) - Static method in class org.aksw.commons.txn.impl.FileUtilsExtra
 
equals(Object) - Method in class org.aksw.commons.txn.impl.PathDiffState
 
equals(Object) - Method in class org.aksw.commons.txn.impl.PathState
 
execRead(TxnApi, Runnable) - Static method in interface org.aksw.commons.txn.api.TxnApi
 
execRead(TxnApi, Callable) - Static method in interface org.aksw.commons.txn.api.TxnApi
 
execWrite(TxnApi, Runnable) - Static method in interface org.aksw.commons.txn.api.TxnApi
 
execWrite(TxnApi, Callable) - Static method in interface org.aksw.commons.txn.api.TxnApi
 
exists() - Method in interface org.aksw.commons.txn.impl.ContentSync
Returns true iff there is at least one backing resource with the old or new state
exists() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 

F

fileChannel - Variable in class org.aksw.commons.lock.FileLockUtils.State
 
fileCreator - Variable in class org.aksw.commons.lock.db.impl.LockFromFile
 
FileLockUtils - Class in org.aksw.commons.lock
Similar to ProcessFileLock
FileLockUtils() - Constructor for class org.aksw.commons.lock.FileLockUtils
 
FileLockUtils.State - Class in org.aksw.commons.lock
 
FileSource - Interface in org.aksw.commons.txn.impl
 
fileSync - Variable in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
FileSync - Interface in org.aksw.commons.txn.impl
Interface for tracking changes to a file.
FileSyncImpl - Class in org.aksw.commons.txn.impl
Protocol implementation to create/read/update/(delete) data with syncing to a file in a transaction-safe way.
FileSyncImpl(Path, Path, Path, boolean) - Constructor for class org.aksw.commons.txn.impl.FileSyncImpl
 
FileUtilsExtra - Class in org.aksw.commons.txn.impl
Eventually these file utils should be consolidated with those in aksw-commons-io.
FileUtilsExtra() - Constructor for class org.aksw.commons.txn.impl.FileUtilsExtra
 
finalizeCommit() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
finalizeCommit() - Method in interface org.aksw.commons.txn.impl.TxnComponent
 
finalizeCommit() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
finalizeCommit(Txn) - Static method in class org.aksw.commons.txn.impl.TxnUtils
Finalize all pending changes.
finalizeFile - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
finalizeFilename - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
forceUnlock() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 

G

get(String) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
get(O) - Method in interface org.aksw.commons.lock.db.api.ResourceLock
 
getActivityDate() - Method in interface org.aksw.commons.txn.api.Txn
 
getActivityDate() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getActivityDate() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getBaseName(String) - Static method in class org.aksw.commons.txn.impl.FileSyncImpl
Return the base name for a file name that is has special meaning w.r.t.
getCreationDate() - Method in interface org.aksw.commons.txn.api.Txn
 
getCreationDate() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getCreationDate() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getCurrentPath() - Method in interface org.aksw.commons.txn.impl.FileSync
Get the path to file with the current content - can be the original file or the temp file
getCurrentPath() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getCurrentState() - Method in class org.aksw.commons.txn.impl.PathDiffState
 
getDurationToNextHeartbeat() - Method in interface org.aksw.commons.txn.api.Txn
 
getDurationToNextHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getDurationToNextHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getFileSync() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
A container to get/set the new content for the resource Once the transaction completes the old content will be replaced with the new one.
getFileSync() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
getHeartbeatDuration() - Method in interface org.aksw.commons.txn.api.TxnMgr
The time interval between two heartbeats for when transaction metadata in the backend (e.g.
getHeartbeatDuration() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getId() - Method in interface org.aksw.commons.txn.api.Txn
Get the id of this transaction
getId() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getId() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getLastModifiedDate() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
The timestamp of the most recent modificaton to the resource
getLastModifiedDate() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
getLastModifiedTime() - Method in interface org.aksw.commons.txn.impl.ContentSync
Returns null if not exists
getLastModifiedTime() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getLastModifiedTimeAsInstant(Path) - Static method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getLock(Path, boolean) - Method in class org.aksw.commons.lock.LockManagerPath
 
getLock(T, boolean) - Method in interface org.aksw.commons.lock.LockManager
 
getLock(T, boolean) - Method in class org.aksw.commons.lock.LockManagerCompound
 
getLock(T, boolean) - Method in class org.aksw.commons.lock.ThreadLockManager
 
getLockByKey(Path) - Method in interface org.aksw.commons.lock.db.api.LockStore
 
getLockByKey(Path) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
getLockForResource(String) - Method in interface org.aksw.commons.lock.db.api.LockStore
Get the API to manage read/write locks for a given resource
getLockForResource(String) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
getLockStore() - Method in interface org.aksw.commons.txn.api.TxnMgr
 
getLockStore() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getMgmtLock() - Method in interface org.aksw.commons.lock.db.api.ReadWriteLockWithOwnership
 
getMgmtLock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
getMgmtLock() - Method in class org.aksw.commons.lock.db.impl.LockOwnerDummy
 
getMgmtLockOwnerKey() - Method in interface org.aksw.commons.lock.db.api.ResourceLock
Get an exclusive lock on the lock which prevents concurent modification of the state of the read locks or the write lock.
getMgmtLockOwnerKey() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
getMostRecentHeartbeat() - Method in interface org.aksw.commons.txn.api.Txn
 
getMostRecentHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getMostRecentHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getNewContentTmpFile() - Method in interface org.aksw.commons.txn.impl.FileSync
Get the file that represents the new content
getNewContentTmpFile() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getOldContentPath() - Method in interface org.aksw.commons.txn.impl.FileSync
Get the path to the file that contains the original content
getOldContentPath() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getOriginalState() - Method in class org.aksw.commons.txn.impl.PathDiffState
 
getOwner() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getOwnerKey(Path) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
getPath() - Method in class org.aksw.commons.lock.db.impl.LockFromFile
 
getPath() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
getPath() - Method in class org.aksw.commons.txn.impl.PathState
 
getPathMatcher() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getPathSegments(String) - Method in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
getPathSegments(T) - Method in interface org.aksw.commons.txn.impl.ResourceRepository
 
getRelPathForJournalEntry(Path) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getResourceApi(String) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getResourceApi(Path) - Method in interface org.aksw.commons.txn.api.Txn
Get access to a resource as seen from this txn
getResourceApi(Path) - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getResourceApi(Path) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
getResourceKey() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
 
getResourceKey() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
getResRepo() - Method in interface org.aksw.commons.txn.api.TxnMgr
 
getResRepo() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getRootPath() - Method in interface org.aksw.commons.txn.api.TxnMgr
 
getRootPath() - Method in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
getRootPath() - Method in interface org.aksw.commons.txn.impl.ResourceRepository
 
getRootPath() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getState(FileSync) - Static method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getSymlink() - Method in interface org.aksw.commons.txn.impl.FileSource
 
getSymlinkStrategy() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getTargetFile() - Method in interface org.aksw.commons.txn.impl.FileSync
Get the path to the file affected by the sync
getTargetFile() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
getTimestamp() - Method in class org.aksw.commons.txn.impl.PathState
 
getTxn(String) - Method in interface org.aksw.commons.txn.api.TxnMgr
Get an accessor to an existing transaction
getTxn(String) - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getTxnMgr() - Method in interface org.aksw.commons.txn.api.Txn
 
getTxnMgr() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
getTxnMgrId() - Method in interface org.aksw.commons.txn.api.TxnMgr
 
getTxnMgrId() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
getTxnResourceLock() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
 
getTxnResourceLock() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
getTxnResourceLock() - Method in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
getWriteLock() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
getWriteLockOwnerKey() - Method in interface org.aksw.commons.lock.db.api.ResourceLock
null if the write lock is not owned
getWriteLockOwnerKey() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 

H

hashCode() - Method in class org.aksw.commons.txn.impl.PathDiffState
 
hashCode() - Method in class org.aksw.commons.txn.impl.PathState
 
heartbeatDuration - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
heldLocks - Variable in class org.aksw.commons.lock.CompoundLock
 

I

INSTANCE - Static variable in class org.aksw.commons.lock.db.impl.DummyLock
 
isCommit() - Method in interface org.aksw.commons.txn.api.Txn
 
isCommit() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
isCommit() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
isDirty() - Method in class org.aksw.commons.txn.impl.PathDiffState
If the original state differs from the current something is dirty
isFinalize() - Method in interface org.aksw.commons.txn.api.Txn
 
isFinalize() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
isFinalize() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
isLockedHere() - Method in interface org.aksw.commons.lock.db.api.ReadWriteLockWithOwnership
Convenience method to test whether at least one of the locks is owned
isOwnedHere() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
isRollback() - Method in interface org.aksw.commons.txn.api.Txn
 
isRollback() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
isRollback() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
isStale() - Method in interface org.aksw.commons.txn.api.Txn
Whether the transaction has become stale
isStale() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
isStale() - Method in class org.aksw.commons.txn.impl.TxnSerializable
A stale transaction was idle for longer than the heartbeat time.
isSymlink() - Method in interface org.aksw.commons.txn.impl.FileSource
 
isVisible() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
Whether the resource is visible to the transaction
isVisible() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
isVisible() - Method in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
isWrite() - Method in interface org.aksw.commons.txn.api.Txn
 
isWrite() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
isWrite() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 

J

journalEntryFile - Variable in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 

L

linkStrategy - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
linkTargetToKey(Path) - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
listVisibleFiles(Path) - Method in interface org.aksw.commons.txn.api.Txn
 
listVisibleFiles(Path) - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
lock - Variable in class org.aksw.commons.lock.ProcessFileLock
 
lock() - Method in class org.aksw.commons.lock.LockBase
 
lock(boolean) - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
lock(boolean) - Method in interface org.aksw.commons.txn.api.TxnResourceApi
Convenience short hand to lock the resource for this transaction
lockAbsPath - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
LockBase - Class in org.aksw.commons.lock
 
LockBase() - Constructor for class org.aksw.commons.lock.LockBase
 
LockBaseRepeat - Class in org.aksw.commons.lock
 
LockBaseRepeat() - Constructor for class org.aksw.commons.lock.LockBaseRepeat
 
lockCore(boolean) - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
LockFromFile - Class in org.aksw.commons.lock.db.impl
 
LockFromFile(Path) - Constructor for class org.aksw.commons.lock.db.impl.LockFromFile
 
LockFromFile(Path, ThrowingConsumer) - Constructor for class org.aksw.commons.lock.db.impl.LockFromFile
 
LockFromLink - Class in org.aksw.commons.lock.db.impl
 
LockFromLink(SymbolicLinkStrategy, Path, String, Function, Function, Path) - Constructor for class org.aksw.commons.lock.db.impl.LockFromLink
 
LockFromLockStore - Class in org.aksw.commons.lock.db.impl
A ReadWriteLock implementation that coordinates acquisition of the management lock and subsequent modification of the read/write lock states.
LockFromLockStore(ResourceLock, String, LockFromLink, LockFromLink, LockFromLink) - Constructor for class org.aksw.commons.lock.db.impl.LockFromLockStore
 
LockFromLockStore.LockView - Class in org.aksw.commons.lock.db.impl
 
lockInterruptibly() - Method in class org.aksw.commons.lock.LockBase
 
lockInterruptibly() - Method in class org.aksw.commons.lock.ProcessFileLock
 
lockKey - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
protected Path resShBasePath; // rootFolder
LockManager<T> - Interface in org.aksw.commons.lock
 
LockManagerCompound<T> - Class in org.aksw.commons.lock
 
LockManagerCompound(List) - Constructor for class org.aksw.commons.lock.LockManagerCompound
 
LockManagerPath - Class in org.aksw.commons.lock
 
LockManagerPath(Path) - Constructor for class org.aksw.commons.lock.LockManagerPath
 
lockMgr - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
LockOwnerDummy - Class in org.aksw.commons.lock.db.impl
 
LockOwnerDummy() - Constructor for class org.aksw.commons.lock.db.impl.LockOwnerDummy
 
lockRepo - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
Root folder of the lock db
lockRepo - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
locks - Variable in class org.aksw.commons.lock.CompoundLock
 
lockStore - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
LockStore<R,O> - Interface in org.aksw.commons.lock.db.api
Interface to manage a set of read/write locks for a set of resources
LockStoreImpl - Class in org.aksw.commons.lock.db.impl
File System based implementation of a LockStore.
LockStoreImpl(SymbolicLinkStrategy, ResourceRepository, ResourceRepository, Function) - Constructor for class org.aksw.commons.lock.db.impl.LockStoreImpl
 
LockStoreImpl.ResourceLockImpl - Class in org.aksw.commons.lock.db.impl
 
LockView(boolean) - Constructor for class org.aksw.commons.lock.db.impl.LockFromLockStore.LockView
 

M

markForDeletion() - Method in interface org.aksw.commons.txn.impl.ContentSync
Convenience method.
mgmtLock - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
mgmtLock - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
mgmtLockFile - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
mgmtLockFilename - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
mgmtLockFilename - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
mgmtLockPath - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
The management lock file which when exists prevents modification of the read/write lock ownerships by other processes
mgmtLockTtl - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
mgmtLockTtl - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 

N

newCondition() - Method in class org.aksw.commons.lock.LockBase
 
newCondition() - Method in class org.aksw.commons.lock.ProcessFileLock
 
newContentFile - Variable in class org.aksw.commons.txn.impl.FileSyncImpl
 
newContentTmpFile - Variable in class org.aksw.commons.txn.impl.FileSyncImpl
 
newOutputStreamToNewTmpContent(boolean) - Method in interface org.aksw.commons.txn.impl.ContentSync
Open an output stream to the tmp content.
newOutputStreamToNewTmpContent(boolean) - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
newTxn(boolean, boolean) - Method in interface org.aksw.commons.txn.api.TxnMgr
 
newTxn(String, boolean, boolean) - Method in interface org.aksw.commons.txn.api.TxnMgr
Create a new transaction.
newTxn(String, boolean, boolean) - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 

O

oldContentFile - Variable in class org.aksw.commons.txn.impl.FileSyncImpl
 
open(Path, boolean, OpenOption...) - Static method in class org.aksw.commons.lock.FileLockUtils
Request an exclusive file channel.
openCurrentContent() - Method in interface org.aksw.commons.txn.impl.ContentSync
Read the most recent content (maybe open the original file).
openCurrentContent() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
openInputStream() - Method in interface org.aksw.commons.txn.impl.FileSource
 
openOutputStream() - Method in interface org.aksw.commons.txn.impl.FileSource
 
org.aksw.commons.lock - package org.aksw.commons.lock
 
org.aksw.commons.lock.db.api - package org.aksw.commons.lock.db.api
 
org.aksw.commons.lock.db.impl - package org.aksw.commons.lock.db.impl
 
org.aksw.commons.txn.api - package org.aksw.commons.txn.api
 
org.aksw.commons.txn.impl - package org.aksw.commons.txn.impl
 
originalState - Variable in class org.aksw.commons.txn.impl.PathDiffState
 
ownerFile - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
ownerFilename - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
ownerKey - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
ownerKey - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
ownerKeyToTarget - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
ownerRepoFactory - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
The owner of locks are usually transactions
ownsReadLock() - Method in interface org.aksw.commons.lock.db.api.ReadWriteLockWithOwnership
 
ownsReadLock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
ownsReadLock() - Method in class org.aksw.commons.lock.db.impl.LockOwnerDummy
 
ownsWriteLock() - Method in interface org.aksw.commons.lock.db.api.ReadWriteLockWithOwnership
 
ownsWriteLock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
ownsWriteLock() - Method in class org.aksw.commons.lock.db.impl.LockOwnerDummy
 

P

path - Variable in class org.aksw.commons.lock.db.impl.LockFromFile
 
path - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
path - Variable in class org.aksw.commons.txn.impl.PathState
 
PathDiffState - Class in org.aksw.commons.txn.impl
A class that holds the original and current state of path metadata.
PathDiffState(PathState, PathState) - Constructor for class org.aksw.commons.txn.impl.PathDiffState
 
PathMapper<T> - Interface in org.aksw.commons.txn.impl
Interface for mapping an entity to a folder w.r.t.
pathMatcher - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
PathState - Class in org.aksw.commons.txn.impl
A path with cached metadata.
PathState(Path, Instant) - Constructor for class org.aksw.commons.txn.impl.PathState
 
pathToLock - Variable in class org.aksw.commons.lock.LockManagerPath
 
precommit(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
preCommit() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
Replace the new content with the current temporary content
preCommit() - Method in interface org.aksw.commons.txn.impl.TxnComponent
 
preCommit() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
ProcessFileLock - Class in org.aksw.commons.lock
 
ProcessFileLock(Path) - Constructor for class org.aksw.commons.lock.ProcessFileLock
 
processLock - Variable in class org.aksw.commons.lock.FileLockUtils.State
 
promote() - Method in interface org.aksw.commons.txn.api.Txn
Promote a read transaction to write.
promote() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
putContent(Consumer) - Method in interface org.aksw.commons.txn.impl.ContentSync
Set the new content of a resource.
putContent(Consumer) - Method in class org.aksw.commons.txn.impl.FileSyncImpl
Set the new content of a resource.
putContent(Consumer) - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 

R

readLock - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
readLock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
readLock() - Method in class org.aksw.commons.lock.db.impl.LockOwnerDummy
 
readLockFilenamePattern - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
readLockView - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
readOwnerKey() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
ReadWriteLockWithOwnership - Interface in org.aksw.commons.lock.db.api
 
resFileAbsPath - Variable in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
resFilePath - Variable in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
resKey - Variable in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
resolve(Path, T) - Method in interface org.aksw.commons.txn.impl.PathMapper
 
resourceLock - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
resourceLock - Variable in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
ResourceLock<O> - Interface in org.aksw.commons.lock.db.api
 
ResourceLockImpl(Path) - Constructor for class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
ResourceRepoImpl - Class in org.aksw.commons.txn.impl
 
ResourceRepoImpl(Path, Function) - Constructor for class org.aksw.commons.txn.impl.ResourceRepoImpl
 
ResourceRepository<T> - Interface in org.aksw.commons.txn.impl
 
resourceToLock - Variable in class org.aksw.commons.lock.ThreadLockManager
 
resRepo - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
resToPath - Variable in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
RetryMgr - Interface in org.aksw.commons.lock
 
rollback() - Method in class org.aksw.commons.txn.impl.FileSyncImpl
 
rollback() - Method in interface org.aksw.commons.txn.impl.TxnComponent
 
rollback() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
rollbackFile - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
rollbackFilename - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
rollbackOrEnd(Txn) - Method in class org.aksw.commons.txn.impl.TxnHandlerImpl
 
rollbackOrEnd(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
rootPath - Variable in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
rootPath - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
run() - Method in interface org.aksw.commons.lock.RetryMgr
 
runWithMgmtLock(Callable) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
runWithVerifiedOwner(Callable) - Method in class org.aksw.commons.txn.impl.TxnSerializable
Acquires the txn's management lock, validates ownership and runs an action while the lock is held.

S

setActivityDate(Instant) - Method in interface org.aksw.commons.txn.api.Txn
Update the transaction's most recent activity timestamp to given timestamp; Used to prevent other processes from considering the transaction stale.
setActivityDate(Instant) - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
setActivityDate(Instant) - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
setCurrentState(PathState) - Method in class org.aksw.commons.txn.impl.PathDiffState
 
setOriginalState(PathState) - Method in class org.aksw.commons.txn.impl.PathDiffState
 
setPath(Path) - Method in class org.aksw.commons.txn.impl.PathState
 
setSymlink(Path) - Method in interface org.aksw.commons.txn.impl.FileSource
 
setTimestamp(Instant) - Method in class org.aksw.commons.txn.impl.PathState
 
singleLockAttempt() - Method in class org.aksw.commons.lock.db.impl.LockFromFile
First, attempt to create the process lock file.
singleLockAttempt() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
singleLockAttempt() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore.LockView
 
singleLockAttempt() - Method in class org.aksw.commons.lock.LockBaseRepeat
 
singleLockAttempt() - Method in class org.aksw.commons.lock.ProcessFileLock
First, attempt to create the process lock file.
State() - Constructor for class org.aksw.commons.lock.FileLockUtils.State
 
storeRepo - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
Mapping of resources to store folders which enables creation of lock files that are link to other folders that contain the data being locked
streamAccessedEntries() - Method in class org.aksw.commons.txn.impl.TxnSerializable
Stream the resources to which access has been declared The returned stream must be closed!
streamAccessedResourcePaths() - Method in interface org.aksw.commons.txn.api.Txn
 
streamAccessedResourcePaths() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
streamAccessedResourcePaths() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
streamFilenames(Path) - Static method in class org.aksw.commons.txn.impl.FileUtilsExtra
 
streamReadLockOwnerKeys() - Method in interface org.aksw.commons.lock.db.api.ResourceLock
Owner to lock
streamReadLockOwnerKeys() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
streamReadLockPaths() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
streamResourceLocks() - Method in interface org.aksw.commons.lock.db.api.LockStore
Get a stream of all existing resource locks The resulting stream should be weakly consistent (See invalid input: '{@link Files#list(java.nio.file.Path)). The result stream should always be used in a try-with-resources block in order to ensure release of resources.'
streamResourceLocks() - Method in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
streamTxns() - Method in interface org.aksw.commons.txn.api.TxnMgr
Stream all existing transactions
streamTxns() - Method in class org.aksw.commons.txn.impl.TxnMgrImpl
 
stringToPath(String) - Static method in class org.aksw.commons.txn.impl.ResourceRepoImpl
 
symbolicLinkStrategy - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
symlinkStrategy - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
Allows for virtual 'symlinks' that are actually regular files; symlinks typically don't work with webdav

T

targetFile - Variable in class org.aksw.commons.txn.impl.FileSyncImpl
 
targetToOwnerKey - Variable in class org.aksw.commons.lock.db.impl.LockFromLink
 
thread - Variable in class org.aksw.commons.lock.ProcessFileLock
 
threadLock - Variable in class org.aksw.commons.lock.FileLockUtils.State
 
ThreadLockManager<T> - Class in org.aksw.commons.lock
Map of some resource to a lock for that resource.
ThreadLockManager() - Constructor for class org.aksw.commons.lock.ThreadLockManager
 
timestamp - Variable in class org.aksw.commons.txn.impl.PathState
 
TO_BASENAME - Static variable in class org.aksw.commons.txn.impl.FileSyncImpl
 
toString() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
toString() - Method in class org.aksw.commons.txn.impl.PathDiffState
 
toString() - Method in class org.aksw.commons.txn.impl.PathState
 
tryCreateFile(Path) - Static method in class org.aksw.commons.lock.LockManagerPath
 
tryLock() - Method in class org.aksw.commons.lock.LockBase
 
tryLock(long, TimeUnit) - Method in class org.aksw.commons.lock.CompoundLock
 
tryLock(long, TimeUnit) - Method in class org.aksw.commons.lock.db.impl.DummyLock
 
tryLock(long, TimeUnit) - Method in class org.aksw.commons.lock.LockBaseRepeat
 
tryLockActual(long, TimeUnit) - Method in class org.aksw.commons.lock.LockBaseRepeat
 
txn - Variable in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
Txn - Interface in org.aksw.commons.txn.api
A transaction can hold locks to several resources.
TxnApi - Interface in org.aksw.commons.txn.api
 
txnBasePath - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
 
TxnComponent - Interface in org.aksw.commons.txn.impl
 
txnFolder - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
TxnHandler - Interface in org.aksw.commons.txn.impl
Callbacks for reacting to events during the life cycle management of transactions.
TxnHandlerImpl - Class in org.aksw.commons.txn.impl
Skeleton for implementing commit / rollback actions.
TxnHandlerImpl(TxnMgr) - Constructor for class org.aksw.commons.txn.impl.TxnHandlerImpl
 
txnId - Variable in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
txnId - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
TxnLockMgr - Class in org.aksw.commons.lock
 
TxnLockMgr() - Constructor for class org.aksw.commons.lock.TxnLockMgr
 
txnMgr - Variable in class org.aksw.commons.txn.impl.TxnHandlerImpl
 
txnMgr - Variable in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
txnMgr - Variable in class org.aksw.commons.txn.impl.TxnSerializable
 
TxnMgr - Interface in org.aksw.commons.txn.api
 
txnMgrId - Variable in class org.aksw.commons.txn.impl.TxnMgrImpl
The (globally unique) id of the transaction manager - transactions use this id to declare their owner.
TxnMgrImpl - Class in org.aksw.commons.txn.impl
Path-based transaction manager: Implements a protocol for that uses folders and symlinks to manage locks on paths (files and directories).
TxnMgrImpl(String, Path, PathMatcher, TemporalAmount, LockManager, Path, ResourceRepository, ResourceRepository, SymbolicLinkStrategy) - Constructor for class org.aksw.commons.txn.impl.TxnMgrImpl
 
TxnReadUncommitted - Class in org.aksw.commons.txn.impl
 
TxnReadUncommitted(TxnMgrImpl, String) - Constructor for class org.aksw.commons.txn.impl.TxnReadUncommitted
 
TxnResourceApi - Interface in org.aksw.commons.txn.api
View over a resource w.r.t a transaction.
TxnResourceApiReadUncommitted<T> - Class in org.aksw.commons.txn.impl
Api to a resource w.r.t.
TxnResourceApiReadUncommitted(T, Path) - Constructor for class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
TxnResourceApiSerializable - Class in org.aksw.commons.txn.impl
Api to a resource w.r.t.
TxnResourceApiSerializable(TxnSerializable, Path) - Constructor for class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
txnResourceLock - Variable in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
TxnSerializable - Class in org.aksw.commons.txn.impl
 
TxnSerializable(TxnMgrImpl, String, Path) - Constructor for class org.aksw.commons.txn.impl.TxnSerializable
 
TxnUtils - Class in org.aksw.commons.txn.impl
Static methods for running commits and rollbacks on the Txn API.
TxnUtils() - Constructor for class org.aksw.commons.txn.impl.TxnUtils
 

U

undeclareAccess() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
Remove access declaration from the txn to this resource.
undeclareAccess() - Method in class org.aksw.commons.txn.impl.TxnResourceApiReadUncommitted
 
undeclareAccess() - Method in class org.aksw.commons.txn.impl.TxnResourceApiSerializable
 
unlock() - Method in class org.aksw.commons.lock.CompoundLock
 
unlock() - Method in class org.aksw.commons.lock.db.impl.DummyLock
 
unlock() - Method in class org.aksw.commons.lock.db.impl.LockFromFile
 
unlock() - Method in class org.aksw.commons.lock.db.impl.LockFromLink
 
unlock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore.LockView
 
unlock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
unlock() - Method in class org.aksw.commons.lock.ProcessFileLock
 
unlock() - Method in interface org.aksw.commons.txn.api.TxnResourceApi
Convenience short hand to unlock either lock
unlock(boolean) - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
unlock(Txn, TxnHandler) - Static method in class org.aksw.commons.txn.impl.TxnUtils
 
unlockCore(boolean) - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
updateActivityDate() - Method in interface org.aksw.commons.txn.api.Txn
Update the transaction's most recent activity timestamp to the current time; Used to prevent other processes from considering the transaction stale.
updateHeartbeat() - Method in interface org.aksw.commons.txn.api.Txn
 
updateHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnReadUncommitted
 
updateHeartbeat() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
updateHeartbeatInternal() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 

W

write - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore.LockView
 
writeLock - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
writeLock() - Method in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
writeLock() - Method in class org.aksw.commons.lock.db.impl.LockOwnerDummy
 
writeLockFilename - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl
 
writeLockPath - Variable in class org.aksw.commons.lock.db.impl.LockStoreImpl.ResourceLockImpl
 
writeLockView - Variable in class org.aksw.commons.lock.db.impl.LockFromLockStore
 
writeOwner() - Method in class org.aksw.commons.txn.impl.TxnSerializable
 
A B C D E F G H I J L M N O P R S T U W 
All Classes and Interfaces|All Packages