Added option to remove debug counters from the hierarchy if it's been added;...
Added option to remove debug counters from the hierarchy if it's been added; useful for keeping track of switch or device counters, which might not stick around forever. Fixed bug in CounterNode where non-null was returned regardless of whether a counter was already present or was a new counter. DebugCounterServiceImpl prints a debug message if non-null is returned, mistakenly indicating you're adding a counter that you already had registerd (generated TONS of annoying debug messages at startup). Next bug, I accidentally initialized counters twice in the OFSwitchManager; now only done once.
Showing
- src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java 0 additions, 1 deletion...t/floodlightcontroller/core/internal/OFSwitchManager.java
- src/main/java/net/floodlightcontroller/debugcounter/CounterNode.java 40 additions, 3 deletions...va/net/floodlightcontroller/debugcounter/CounterNode.java
- src/main/java/net/floodlightcontroller/debugcounter/DebugCounterServiceImpl.java 23 additions, 0 deletions...lightcontroller/debugcounter/DebugCounterServiceImpl.java
- src/main/java/net/floodlightcontroller/debugcounter/IDebugCounterService.java 12 additions, 0 deletions...oodlightcontroller/debugcounter/IDebugCounterService.java
- src/main/java/net/floodlightcontroller/debugcounter/MockDebugCounterService.java 6 additions, 0 deletions...lightcontroller/debugcounter/MockDebugCounterService.java
Loading
Please register or sign in to comment