Class FileLockInfo

java.lang.Object
ubic.gemma.core.util.locking.FileLockInfo

public final class FileLockInfo extends Object
Metadata about a file lock.
Author:
poirigui
  • Constructor Details

    • FileLockInfo

      public FileLockInfo(Path path, Path lockfilePath, int readHoldCount, int readLockCount, int writeHoldCount, boolean isWriteLocked, int channelHoldCount, List<FileLockInfo> procInfo)
      Creates a new FileLockInfo instance.
      Parameters:
      path - Path subject to locking.
      lockfilePath - Path being locked, which is usually getPath() with a .lock suffix.
      readHoldCount - @see ReentrantReadWriteLock#getReadHoldCount()
      readLockCount - @see ReentrantReadWriteLock#getReadLockCount()
      writeHoldCount - @see ReentrantReadWriteLock#getWriteHoldCount()
      isWriteLocked - @see ReentrantReadWriteLock#isWriteLocked()
      channelHoldCount - Number of reentrant holds on the FileChannel.

      When that number goes down to zero, the channel is closed.

      procInfo - Process-level information about the file lock.
  • Method Details