Stores FlumeEvents on disk and pointers to the events in a in memory queue. Once a log object is created the replay method should be called to reconcile the on disk write ahead log with the last checkpoint of the queue. Before calling any of commitPut/commitTake/get/put/rollback/take Log.tryLockShared should be called and the above operations should only be called if tryLockShared returns true. After the operation and any additional modifications of the FlumeEventQueue, the Log.unlockShared method should be called.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.