Package org.apache.hadoop.hbase.util

Examples of org.apache.hadoop.hbase.util.JVM


  static class ProcessCountResourceAnalyzer extends ResourceChecker.ResourceAnalyzer {
    @Override
    public int getVal(Phase phase) {
      if (!JVM.isUnix()) return 0;
      return new JVM().getNumberOfRunningProcess();
    }
View Full Code Here


  static class AvailableMemoryMBResourceAnalyzer extends ResourceChecker.ResourceAnalyzer {
    @Override
    public int getVal(Phase phase) {
      if (!JVM.isUnix()) return 0;
      return (int) (new JVM().getFreeMemory() / (1024L * 1024L));
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.util.JVM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.