本文整理汇总了Java中org.apache.hadoop.metrics2.impl.JmxCacheBuster类的典型用法代码示例。如果您正苦于以下问题:Java JmxCacheBuster类的具体用法?Java JmxCacheBuster怎么用?Java JmxCacheBuster使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JmxCacheBuster类属于org.apache.hadoop.metrics2.impl包,在下文中一共展示了JmxCacheBuster类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: close
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
@Override
public void close() {
closed = true;
agg.deregister(this);
LOG.trace("Removing region Metrics: " + regionWrapper.getRegionName());
registry.removeMetric(regionPutKey);
registry.removeMetric(regionDeleteKey);
registry.removeMetric(regionIncrementKey);
registry.removeMetric(regionAppendKey);
registry.removeMetric(regionGetKey);
registry.removeMetric(regionScanNextKey);
JmxCacheBuster.clearJmxCache();
}
开发者ID:grokcoder,项目名称:pbase,代码行数:19,代码来源:MetricsRegionSourceImpl.java
示例2: close
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
@Override
public void close() {
closed = true;
agg.deregister(this);
LOG.trace("Removing region Metrics: " + regionWrapper.getRegionName());
registry.removeMetric(regionPutKey);
registry.removeMetric(regionDeleteKey);
registry.removeMetric(regionIncrementKey);
registry.removeMetric(regionAppendKey);
registry.removeMetric(regionGetKey);
registry.removeMetric(regionScanNextKey);
JmxCacheBuster.clearJmxCache();
}
开发者ID:tenggyut,项目名称:HIndex,代码行数:18,代码来源:MetricsRegionSourceImpl.java
示例3: MetricsRegionAggregateSourceImpl
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
public MetricsRegionAggregateSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) {
super(metricsName, metricsDescription, metricsContext, metricsJmxContext);
// Every few mins clean the JMX cache.
executor.getExecutor().scheduleWithFixedDelay(new Runnable() {
public void run() {
JmxCacheBuster.clearJmxCache();
}
}, 5, 5, TimeUnit.MINUTES);
}
开发者ID:fengchen8086,项目名称:ditb,代码行数:14,代码来源:MetricsRegionAggregateSourceImpl.java
示例4: close
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
@Override
public void close() {
closed = true;
agg.deregister(this);
LOG.trace("Removing region Metrics: " + regionWrapper.getRegionName());
registry.removeMetric(regionPutKey);
registry.removeMetric(regionDeleteKey);
registry.removeMetric(regionGetKey);
registry.removeMetric(regionIncrementKey);
registry.removeMetric(regionAppendKey);
JmxCacheBuster.clearJmxCache();
}
开发者ID:daidong,项目名称:DominoHBase,代码行数:16,代码来源:MetricsRegionSourceImpl.java
示例5: clearCache
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
private synchronized void clearCache() {
JmxCacheBuster.clearJmxCache();
}
开发者ID:fengchen8086,项目名称:ditb,代码行数:4,代码来源:MetricsRegionAggregateSourceImpl.java
示例6: removeMetric
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
/**
* Remove a named gauge.
*
* @param key
*/
public void removeMetric(String key) {
metricsRegistry.removeMetric(key);
JmxCacheBuster.clearJmxCache();
}
开发者ID:fengchen8086,项目名称:ditb,代码行数:10,代码来源:BaseSourceImpl.java
示例7: removeMetric
import org.apache.hadoop.metrics2.impl.JmxCacheBuster; //导入依赖的package包/类
/**
* Remove a named metric.
*
* @param key
*/
public void removeMetric(String key) {
metricsRegistry.removeMetric(key);
JmxCacheBuster.clearJmxCache();
}
开发者ID:tenggyut,项目名称:HIndex,代码行数:10,代码来源:BaseSourceImpl.java
注:本文中的org.apache.hadoop.metrics2.impl.JmxCacheBuster类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论