NativeIO.POSIX.CacheManipulator (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.io.nativeio, class: NativeIO, class: POSIX, class: CacheManipulator

Package org.apache.hadoop.io.nativeio

# 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 Summary

  Constructors
  Constructor
  Description
  `CacheManipulator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getMemlockLimit()`
  `long`
  `getOperatingSystemPageSize()`
  `void`
  `mlock(String identifier, ByteBuffer buffer, long len)`
  `void`
  `posixFadviseIfPossible(String identifier, FileDescriptor fd, long offset, long len, int flags)`
  `boolean`
  `verifyCanMlock()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()