Package org.apache.hadoop.hbase.util

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


  static class OpenFileDescriptorResourceAnalyzer extends ResourceChecker.ResourceAnalyzer {
    @Override
    public int getVal(Phase phase) {
      if (JVM.isUnix() == false) return 0;
      JVM jvm = new JVM();
      return (int)jvm.getOpenFileDescriptorCount();
    }
View Full Code Here


  static class MaxFileDescriptorResourceAnalyzer extends ResourceChecker.ResourceAnalyzer {
    @Override
    public int getVal(Phase phase) {
      if (JVM.isUnix() == false) return 0;
      JVM jvm = new JVM();
      return (int)jvm.getMaxFileDescriptorCount();
     }
View Full Code Here

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

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

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

  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

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

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

  static class SystemLoadAverageResourceAnalyzer extends ResourceChecker.ResourceAnalyzer {
    @Override
    public int getVal(Phase phase) {
      if (!JVM.isUnix()) return 0;
      return (int)(new JVM().getSystemLoadAverage()*100);
    }
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.