org.littleshoot.util
Class LockedFileProcessorImpl
java.lang.Object
org.littleshoot.util.LockedFileProcessorImpl
- All Implemented Interfaces:
- LockedFileProcessor
public class LockedFileProcessorImpl
- extends Object
- implements LockedFileProcessor
Utility class that uses a control lock file to check permission for reading
a data file. Useful for IPC and such.
|
Method Summary |
void |
processFile()
Tells to processor to start checking the file for changes and to start
processing data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockedFileProcessorImpl
public LockedFileProcessorImpl(LockedFileReader reader,
File lockFile,
File dataFile)
- Creates a new locked file processor.
- Parameters:
reader - The reader class.lockFile - The lock file to lock.dataFile - The data file to pass to the reader once we've obtained
the lock.
processFile
public void processFile()
- Description copied from interface:
LockedFileProcessor
- Tells to processor to start checking the file for changes and to start
processing data.
- Specified by:
processFile in interface LockedFileProcessor
Copyright © 2011-2013 LittleShoot. All Rights Reserved.