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
Used to manipulate the operating system cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidmlock(String identifier, ByteBuffer buffer, long len) voidposixFadviseIfPossible(String identifier, FileDescriptor fd, long offset, long len, int flags) boolean
-
Constructor Details
-
CacheManipulator
public CacheManipulator()
-
-
Method Details
-
mlock
- 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()
-