org.deckfour.xes.nikefs2
Class NikeFS2FileAccessMonitor

java.lang.Object
  extended by org.deckfour.xes.nikefs2.NikeFS2FileAccessMonitor

public class NikeFS2FileAccessMonitor
extends Object

Author:
Christian W. Guenther (christian@deckfour.org)

Constructor Summary
NikeFS2FileAccessMonitor(int shadowSize)
           
 
Method Summary
static NikeFS2FileAccessMonitor instance()
           
 MappedByteBuffer requestMap(NikeFS2BlockProvider requester)
          Grants access to the mapped byte buffer on the backing file for a block provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NikeFS2FileAccessMonitor

public NikeFS2FileAccessMonitor(int shadowSize)
Method Detail

instance

public static NikeFS2FileAccessMonitor instance()

requestMap

public MappedByteBuffer requestMap(NikeFS2BlockProvider requester)
                            throws 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:
IOException