Package generic.util

Class FileLocker

  • Direct Known Subclasses:
    ChannelLocker

    public class FileLocker
    extends java.lang.Object
    • Field Detail

      • lockFile NEW

        protected final java.io.File lockFile
      • existingLockProperties NEW

        protected final java.util.Properties existingLockProperties
      • createdLockProperties NEW

        protected java.util.Properties createdLockProperties
      • existingLockType NEW

        protected final java.lang.String existingLockType
      • isLocked NEW

        protected boolean isLocked

Constructor Detail

  • Method Detail

    • lock

      public boolean lock()
    • isLocked

      public boolean isLocked()
    • release

      public void release()
    • canForceLock

      public boolean canForceLock()
    • forceLock

      public boolean forceLock()
    • getExistingLockFileInformation

      public java.lang.String getExistingLockFileInformation()
    • getLockType NEW

      protected java.lang.String getLockType()
    • createLockFile NEW

      protected boolean createLockFile()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object