|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.floodlightcontroller.debugevent.NullDebugEvent
public class NullDebugEvent
| Nested Class Summary | |
|---|---|
class |
NullDebugEvent.NullEventImpl<T>
|
| Nested classes/interfaces inherited from interface net.floodlightcontroller.debugevent.IDebugEventService |
|---|
IDebugEventService.DebugEventInfo, IDebugEventService.EventColumn, IDebugEventService.EventFieldType, IDebugEventService.EventType, IDebugEventService.MaxEventsRegistered |
| Field Summary |
|---|
| Fields inherited from interface net.floodlightcontroller.debugevent.IDebugEventService |
|---|
EV_MDATA_ERROR, EV_MDATA_WARN, MAX_EVENTS |
| Constructor Summary | |
|---|---|
NullDebugEvent()
|
|
| Method Summary | ||
|---|---|---|
boolean |
containsModuleEventName(java.lang.String moduleName,
java.lang.String eventName)
Determine if eventName is a registered event for a given moduleName |
|
boolean |
containsModuleName(java.lang.String moduleName)
Determine if any events have been registered for module of name moduleName |
|
void |
flushEvents()
Update the global event stores with values from the thread local stores. |
|
java.util.List<IDebugEventService.DebugEventInfo> |
getAllEventHistory()
Get event history for all events. |
|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleDependencies()
Get a list of Modules that this module depends on. |
|
java.util.List<IDebugEventService.DebugEventInfo> |
getModuleEventHistory(java.lang.String param)
Get event history for all events registered for a given moduleName |
|
java.util.List<java.lang.String> |
getModuleEventList(java.lang.String moduleName)
Returns a list of all events registered for a specific moduleName or a empty list |
|
java.util.List<java.lang.String> |
getModuleList()
Retrieve a list of moduleNames registered for debug events or an empty list if no events have been registered in the system |
|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleServices()
Return the list of interfaces that this module implements. |
|
java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> |
getServiceImpls()
Instantiate (as needed) and return objects that implement each of the services exported by this module. |
|
IDebugEventService.DebugEventInfo |
getSingleEventHistory(java.lang.String moduleName,
java.lang.String eventName,
int last)
Get event history for a single event |
|
void |
init(FloodlightModuleContext context)
This is a hook for each module to do its internal initialization, e.g., call setService(context.getService("Service")) All module dependencies are resolved when this is called, but not every module is initialized. |
|
|
registerEvent(java.lang.String moduleName,
java.lang.String eventName,
java.lang.String eventDescription,
IDebugEventService.EventType eventType,
java.lang.Class<T> eventClass,
int bufferCapacity,
java.lang.String... metaData)
Register an event for debugging. |
|
void |
resetAllEvents()
Wipe out all event history for all registered events |
|
void |
resetAllModuleEvents(java.lang.String moduleName)
Wipe out all event history for all events registered for a specific module |
|
void |
resetSingleEvent(java.lang.String moduleName,
java.lang.String eventName)
Wipe out event history for a single event |
|
void |
startUp(FloodlightModuleContext context)
This is a hook for each module to do its external initializations, e.g., register for callbacks or query for state in other modules It is expected that this function will not block and that modules that want non-event driven CPU will spawn their own threads. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullDebugEvent()
| Method Detail |
|---|
public void flushEvents()
IDebugEventService
flushEvents in interface IDebugEventServicepublic java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices in interface IFloodlightModulepublic java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls in interface IFloodlightModulepublic java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleDependencies()
IFloodlightModule
getModuleDependencies in interface IFloodlightModule
public void init(FloodlightModuleContext context)
throws FloodlightModuleException
IFloodlightModule
init in interface IFloodlightModuleFloodlightModuleException
public void startUp(FloodlightModuleContext context)
throws FloodlightModuleException
IFloodlightModule
startUp in interface IFloodlightModuleFloodlightModuleException
public boolean containsModuleEventName(java.lang.String moduleName,
java.lang.String eventName)
IDebugEventService
containsModuleEventName in interface IDebugEventServicepublic boolean containsModuleName(java.lang.String moduleName)
IDebugEventService
containsModuleName in interface IDebugEventServicepublic java.util.List<IDebugEventService.DebugEventInfo> getAllEventHistory()
IDebugEventService
getAllEventHistory in interface IDebugEventServicepublic java.util.List<IDebugEventService.DebugEventInfo> getModuleEventHistory(java.lang.String param)
IDebugEventService
getModuleEventHistory in interface IDebugEventService
public IDebugEventService.DebugEventInfo getSingleEventHistory(java.lang.String moduleName,
java.lang.String eventName,
int last)
IDebugEventService
getSingleEventHistory in interface IDebugEventServicemoduleName - registered module nameeventName - registered event name for moduleNamelast - last X events
public void resetAllEvents()
IDebugEventService
resetAllEvents in interface IDebugEventServicepublic void resetAllModuleEvents(java.lang.String moduleName)
IDebugEventService
resetAllModuleEvents in interface IDebugEventServicemoduleName - registered module name
public void resetSingleEvent(java.lang.String moduleName,
java.lang.String eventName)
IDebugEventService
resetSingleEvent in interface IDebugEventServicemoduleName - registered module nameeventName - registered event name for moduleName
public <T> IEventUpdater<T> registerEvent(java.lang.String moduleName,
java.lang.String eventName,
java.lang.String eventDescription,
IDebugEventService.EventType eventType,
java.lang.Class<T> eventClass,
int bufferCapacity,
java.lang.String... metaData)
throws IDebugEventService.MaxEventsRegistered
IDebugEventService
registerEvent in interface IDebugEventServicemoduleName - module registering event eg. linkdiscovery, virtualrouting.eventName - name given to event.eventDescription - A descriptive string describing the event.eventType - EventType for this event. On-demand events have to
be explicitly enabled using other methods in this APIeventClass - A user defined class that annotates the fields
with @EventColumn. This class specifies the
fields/columns for this event.bufferCapacity - Number of events to store for this event in a circular
buffer. Older events will be discarded once the
buffer is full.metaData - variable arguments that qualify an event
eg. EV_MDATA_WARN, EV_MDATA_ERROR etc. See Debug Event Qualifiers
IDebugEventService.MaxEventsRegisteredpublic java.util.List<java.lang.String> getModuleList()
IDebugEventService
getModuleList in interface IDebugEventServicepublic java.util.List<java.lang.String> getModuleEventList(java.lang.String moduleName)
IDebugEventService
getModuleEventList in interface IDebugEventService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||