Class NikeFS2FileAccessMonitor


  • public class NikeFS2FileAccessMonitor
    extends java.lang.Object
    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Constructor Detail

      • NikeFS2FileAccessMonitor

        public NikeFS2FileAccessMonitor​(int shadowSize)
    • Method Detail

      • 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