Class FileLockInfo

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

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

    • FileLockInfo

      public FileLockInfo(String id, boolean mandatory, boolean exclusive, int pid, boolean self, String majorDevice, String minorDevice, long inode, long start, long length)
      Creates a new FileLockInfo instance.
      Parameters:
      id - Unique identifier for the lock.
      mandatory - Indicate if this lock is mandatory (i.e. being enforced by the OS).
      exclusive - Indicate if this lock is exclusive.
      pid - PID of the process holding the lock.
      self - Indicate if this process info belongs to the current process.
      majorDevice -
      minorDevice -
      inode -
      start -
      length -
  • Method Details

    • getId

      public String getId()
      Unique identifier for the lock.
    • isMandatory

      public boolean isMandatory()
      Indicate if this lock is mandatory (i.e. being enforced by the OS).
    • isExclusive

      public boolean isExclusive()
      Indicate if this lock is exclusive.
    • getPid

      public int getPid()
      PID of the process holding the lock.
    • isSelf

      public boolean isSelf()
      Indicate if this process info belongs to the current process.
    • getMajorDevice

      public String getMajorDevice()
    • getMinorDevice

      public String getMinorDevice()
    • getInode

      public long getInode()
    • getStart

      public long getStart()
    • getLength

      public long getLength()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object