本文整理汇总了Java中net.floodlightcontroller.debugcounter.IDebugCounter.increment方法的典型用法代码示例。如果您正苦于以下问题:Java IDebugCounter.increment方法的具体用法?Java IDebugCounter.increment怎么用?Java IDebugCounter.increment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.floodlightcontroller.debugcounter.IDebugCounter
的用法示例。
在下文中一共展示了IDebugCounter.increment方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateCounters
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入方法依赖的package包/类
protected void updateCounters(String tableOpType, String tableName) {
String counterName = tableName + "__" + tableOpType;
IDebugCounter counter = debugCounters.get(counterName);
if (counter == null) {
counter = debugCounterService.registerCounter(this.getClass().getCanonicalName(), counterName, counterName, MetaData.WARN);
debugCounters.put(counterName, counter); // maintain a list of the counters as the tables register with the storage source service
}
counter.increment();
/*
* Now, do the counter for the base only (general update, add, or delete operation)
*/
counter = debugCounters.get(tableOpType);
if (counter == null) {
counter = debugCounterService.registerCounter(this.getClass().getCanonicalName(), tableOpType, tableOpType, MetaData.WARN);
debugCounters.put(tableOpType, counter);
}
counter.increment();
}
示例2: updateCounters
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入方法依赖的package包/类
protected void updateCounters(String tableOpType, String tableName) {
String counterName = tableName + "__" + tableOpType;
IDebugCounter counter = debugCounters.get(counterName);
if (counter == null) {
counter = debugCounterService.registerCounter(this.getClass().getCanonicalName(), counterName, counterName, MetaData.WARN);
debugCounters.put(counterName, counter); // maintain a list of the counters as the tables register with the storage source service
}
counter.increment();
/*
* Now, do the counter for the base only (general update, add, or delete operation)
*/
counter = debugCounters.get(tableOpType);
if (counter == null) {
counter = debugCounterService.registerCounter(this.getClass().getCanonicalName(), tableOpType, tableOpType, MetaData.WARN);
debugCounters.put(tableOpType, counter);
}
counter.increment();
}
示例3: updateCounter
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入方法依赖的package包/类
protected void updateCounter(IDebugCounter counter) {
if (debugCounter != null) {
counter.increment();
}
}