public interface IDebugCounterService extends IFloodlightService
Modifier and Type | Interface and Description |
---|---|
static class |
IDebugCounterService.MetaData |
Modifier and Type | Method and Description |
---|---|
java.util.List<DebugCounterResource> |
getAllCounterValues()
Get counter values and associated information for all counters in the
system
|
java.util.List<DebugCounterResource> |
getCounterHierarchy(java.lang.String moduleName,
java.lang.String counterHierarchy)
Get counter value and associated information for the specified counterHierarchy.
|
java.util.List<DebugCounterResource> |
getModuleCounterValues(java.lang.String moduleName)
Get counter values and associated information for all counters associated
with a module.
|
IDebugCounter |
registerCounter(java.lang.String moduleName,
java.lang.String counterHierarchy,
java.lang.String counterDescription,
IDebugCounterService.MetaData... metaData)
All modules that wish to have the DebugCounterService count for them, must
register their counters by making this call (typically from that module's
'startUp' method).
|
boolean |
registerModule(java.lang.String moduleName)
All modules that wish to have the DebugCounterService count for them, must
register themselves.
|
boolean |
removeCounterHierarchy(java.lang.String moduleName,
java.lang.String counterHierarchy)
Removes/deletes the counter hierarchy AND ALL LEVELS BELOW it in the hierarchy.
|
void |
resetAllCounters()
Resets the values of all counters in the system.
|
boolean |
resetAllModuleCounters(java.lang.String moduleName)
Resets the values of all counters belonging
to a module with the given 'moduleName'.
|
boolean |
resetCounterHierarchy(java.lang.String moduleName,
java.lang.String counterHierarchy)
Resets the value of counters in the hierarchy to zero.
|
boolean registerModule(java.lang.String moduleName)
moduleName
- IDebugCounter registerCounter(java.lang.String moduleName, java.lang.String counterHierarchy, java.lang.String counterDescription, IDebugCounterService.MetaData... metaData)
moduleName
- the name of the module which is registering the
counter eg. linkdiscovery or controller or switchcounterHierarchy
- the hierarchical counter name specifying all
the hierarchical levels that come above it.
For example: to register a drop counter for
packet-ins from a switch, the counterHierarchy
can be "00:00:00:00:01:02:03:04/pktin/drops"
It is necessary that counters in hierarchical levels
above have already been pre-registered - in this
example: "00:00:00:00:01:02:03:04/pktin" and
"00:00:00:00:01:02:03:04"counterDescription
- a descriptive string that gives more information
of what the counter is measuring. For example,
"Measures the number of incoming packets seen by
this module".metaData
- variable arguments that qualify a counter
eg. warn, error etc.boolean resetCounterHierarchy(java.lang.String moduleName, java.lang.String counterHierarchy)
void resetAllCounters()
boolean resetAllModuleCounters(java.lang.String moduleName)
boolean removeCounterHierarchy(java.lang.String moduleName, java.lang.String counterHierarchy)
java.util.List<DebugCounterResource> getCounterHierarchy(java.lang.String moduleName, java.lang.String counterHierarchy)
java.util.List<DebugCounterResource> getAllCounterValues()
java.util.List<DebugCounterResource> getModuleCounterValues(java.lang.String moduleName)
moduleName
-