本文整理汇总了Java中net.floodlightcontroller.debugcounter.IDebugCounter类的典型用法代码示例。如果您正苦于以下问题:Java IDebugCounter类的具体用法?Java IDebugCounter怎么用?Java IDebugCounter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDebugCounter类属于net.floodlightcontroller.debugcounter包,在下文中一共展示了IDebugCounter类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: registerCounterLocal
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
/**
* Utility function to create description string and do counter registration
* @param countersService
* @param stringId The string ID
* @param messageType Type of open flow message
* @return the registered DebugCounter
*/
IDebugCounter registerCounterLocal(IDebugCounterService countersService,
String hierarchy,
String stringId,
String messageType){
String counterHierarchy = stringId + hierarchy + "/" + messageType;
String counterDescription = "Number of " + messageType +
" messages in this connection";
return countersService.registerCounter(COUNTER_MODULE, counterHierarchy,
counterDescription);
}
示例4: registerCounterLocal
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
/**
* Utility function to create description string and do counter registration
* 创建描述字符串并注册计数器
* @param countersService
* @param stringId The string ID
* @param messageType Type of open flow message
* @return the registered DebugCounter
*/
IDebugCounter registerCounterLocal(IDebugCounterService countersService,
String hierarchy,
String stringId,
String messageType){
String counterHierarchy = stringId + hierarchy + "/" + messageType;
String counterDescription = "Number of " + messageType +
" messages in this connection";
return countersService.registerCounter(COUNTER_MODULE, counterHierarchy,
counterDescription);
}
示例5: updateCounter
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
protected void updateCounter(IDebugCounter counter, int incr) {
counter.add(incr);
}
示例6: updateCounter
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
protected void updateCounter(IDebugCounter counter) {
if (debugCounter != null) {
counter.increment();
}
}
示例7: updateCounter
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
protected void updateCounter(IDebugCounter counter, int incr) {
counter.updateCounterWithFlush(incr);
}
示例8: updateCounter
import net.floodlightcontroller.debugcounter.IDebugCounter; //导入依赖的package包/类
protected void updateCounter(IDebugCounter counter) {
if (debugCounter != null) {
counter.updateCounterWithFlush();
}
}