Package generic.util
Class FileLocker
- java.lang.Object
-
- generic.util.FileLocker
-
- Direct Known Subclasses:
ChannelLocker
public class FileLocker extends java.lang.Object
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected java.util.PropertiescreatedLockPropertiesNEW protected java.util.PropertiesexistingLockPropertiesNEW protected java.lang.StringexistingLockTypeNEW protected booleanisLockedNEW protected java.io.FilelockFile
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedFileLocker(java.io.File lockFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description booleancanForceLock()NEW protected booleancreateLockFile()booleanforceLock()java.lang.StringgetExistingLockFileInformation()NEW protected java.lang.StringgetLockType()booleanisLocked()booleanlock()voidrelease()java.lang.StringtoString()
-
-
-
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()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-