Class LockStoreImpl

java.lang.Object
org.aksw.commons.lock.db.impl.LockStoreImpl
All Implemented Interfaces:
LockStore<String[],String>

public class LockStoreImpl extends Object implements LockStore<String[],String>
File System based implementation of a LockStore. For each resource subject to locking a folder is created in the lock repository. Each read/write lock is represented as a file which then links to a path that represents the owner. Typically the owner-path is the folder where transaction resources are managed.
Author:
Claus Stadler
  • Field Details

    • readLockFilenamePattern

      protected String readLockFilenamePattern
    • writeLockFilename

      protected String writeLockFilename
    • mgmtLockFilename

      protected String mgmtLockFilename
    • symbolicLinkStrategy

      protected org.aksw.commons.io.util.symlink.SymbolicLinkStrategy symbolicLinkStrategy
    • lockRepo

      protected ResourceRepository<String> lockRepo
      Root folder of the lock db
    • ownerRepoFactory

      protected Function<String,Path> ownerRepoFactory
      The owner of locks are usually transactions
    • storeRepo

      protected ResourceRepository<String> storeRepo
      Mapping of resources to store folders which enables creation of lock files that are link to other folders that contain the data being locked
  • Constructor Details

  • Method Details