Class NativeIO.POSIX.CacheManipulator

java.lang.Object
org.apache.hadoop.io.nativeio.NativeIO.POSIX.CacheManipulator
Direct Known Subclasses:
NativeIO.POSIX.NoMlockCacheManipulator
Enclosing class:
NativeIO.POSIX

@VisibleForTesting public static class NativeIO.POSIX.CacheManipulator extends Object
Used to manipulate the operating system cache.
  • Constructor Details

    • CacheManipulator

      public CacheManipulator()
  • Method Details

    • mlock

      public void mlock(String identifier, ByteBuffer buffer, long len) throws IOException
      Throws:
      IOException
    • getMemlockLimit

      public long getMemlockLimit()
    • getOperatingSystemPageSize

      public long getOperatingSystemPageSize()
    • posixFadviseIfPossible

      public void posixFadviseIfPossible(String identifier, FileDescriptor fd, long offset, long len, int flags) throws NativeIOException
      Throws:
      NativeIOException
    • verifyCanMlock

      public boolean verifyCanMlock()