org.apache.hadoop.hbase.util
Class UnsafeAvailChecker

java.lang.Object
  extended by org.apache.hadoop.hbase.util.UnsafeAvailChecker

@InterfaceAudience.Private
public class UnsafeAvailChecker
extends Object


Method Summary
static boolean isAvailable()
           
static boolean unaligned()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAvailable

public static boolean isAvailable()
Returns:
true when running JVM is having sun's Unsafe package available in it and it is accessible.

unaligned

public static boolean unaligned()
Returns:
true when running JVM is having sun's Unsafe package available in it and underlying system having unaligned-access capability.


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.