Java 类org.apache.hadoop.hbase.metrics.HBaseInfo 实例源码

项目:LCIndex-HBase-0.94.16    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:LCIndex-HBase-0.94.16    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:IRIndex    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:IRIndex    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:RStore    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:RStore    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:HBase-Research    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:HBase-Research    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hbase-0.94.8-qod    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hbase-0.94.8-qod    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hbase-0.94.8-qod    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hbase-0.94.8-qod    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hindex    文件:MasterMetrics.java   
public MasterMetrics(final String name) {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "master");
  metricsRecord.setTag("Master", name);
  context.registerUpdater(this);
  JvmMetrics.init("Master", name);
  HBaseInfo.init();

  // expose the MBean for metrics
  masterStatistics = new MasterStatistics(this.registry);

  // get custom attributes
  try {
    Object m = 
      ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}
项目:hindex    文件:RegionServerMetrics.java   
public RegionServerMetrics() {
  MetricsContext context = MetricsUtil.getContext("hbase");
  metricsRecord = MetricsUtil.createRecord(context, "regionserver");
  String name = Thread.currentThread().getName();
  metricsRecord.setTag("RegionServer", name);
  context.registerUpdater(this);
  // Add jvmmetrics.
  JvmMetrics.init("RegionServer", name);
  // Add Hbase Info metrics
  HBaseInfo.init();

  // export for JMX
  statistics = new RegionServerStatistics(this.registry, name);

  // get custom attributes
  try {
    Object m = ContextFactory.getFactory().getAttribute("hbase.extendedperiod");
    if (m instanceof String) {
      this.extendedPeriod = Long.parseLong((String) m)*1000;
    }
  } catch (IOException ioe) {
    LOG.info("Couldn't load ContextFactory for Metrics config info");
  }

  LOG.info("Initialized");
}