use of org.apache.hadoop.io.nativeio.NativeIO.POSIX.CacheManipulator in project hadoop by apache.
the class TestEnhancedByteBufferAccess method init.
@BeforeClass
public static void init() {
sockDir = new TemporarySocketDirectory();
DomainSocket.disableBindPathValidation();
prevCacheManipulator = NativeIO.POSIX.getCacheManipulator();
NativeIO.POSIX.setCacheManipulator(new CacheManipulator() {
@Override
public void mlock(String identifier, ByteBuffer mmap, long length) throws IOException {
LOG.info("mlocking " + identifier);
}
});
}
Aggregations