Package ubic.gemma.core.util.runtime
Class FileLockInfo
java.lang.Object
ubic.gemma.core.util.runtime.FileLockInfo
Metadata about a file lock.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionFileLockInfo(String id, boolean mandatory, boolean exclusive, int pid, boolean self, String majorDevice, String minorDevice, long inode, long start, long length) Creates a newFileLockInfoinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Unique identifier for the lock.longgetInode()longintgetPid()PID of the process holding the lock.longgetStart()inthashCode()booleanIndicate if this lock is exclusive.booleanIndicate if this lock is mandatory (i.e.booleanisSelf()Indicate if this process info belongs to the current process.toString()
-
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 newFileLockInfoinstance.- 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
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
-
getMinorDevice
-
getInode
public long getInode() -
getStart
public long getStart() -
getLength
public long getLength() -
equals
-
hashCode
public int hashCode() -
toString
-