Package org.deckfour.xes.nikefs2
Class NikeFS2FileAccessMonitor
- java.lang.Object
-
- org.deckfour.xes.nikefs2.NikeFS2FileAccessMonitor
-
public class NikeFS2FileAccessMonitor extends java.lang.Object- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Constructor Summary
Constructors Constructor Description NikeFS2FileAccessMonitor(int shadowSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NikeFS2FileAccessMonitorinstance()static NikeFS2FileAccessMonitorinstance(int shadowSize)java.nio.MappedByteBufferrequestMap(NikeFS2BlockProvider requester)Grants access to the mapped byte buffer on the backing file for a block provider.
-
-
-
Method Detail
-
instance
public static NikeFS2FileAccessMonitor instance()
-
instance
public static NikeFS2FileAccessMonitor instance(int shadowSize)
-
requestMap
public java.nio.MappedByteBuffer requestMap(NikeFS2BlockProvider requester) throws java.io.IOException
Grants access to the mapped byte buffer on the backing file for a block provider. This static method implements the backing file manager, which ensures that only a limited number of backing files and associated mapped byte buffers are concurrently in use.- Parameters:
requester- Block provider requesting access.- Returns:
- The mapped byte buffer over the requester's backing file.
- Throws:
java.io.IOException
-
-