|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.floodlightcontroller.perfmon.NullPktInProcessingTime
public class NullPktInProcessingTime
An IPktInProcessingTimeService implementation that does nothing. This is used mainly for performance testing or if you don't want to use the IPktInProcessingTimeService features.
Constructor Summary | |
---|---|
NullPktInProcessingTime()
|
Method Summary | |
---|---|
void |
bootstrap(java.util.List<IOFMessageListener> listeners)
Creates time buckets for a set of modules to measure their performance |
CumulativeTimeBucket |
getCtb()
|
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleDependencies()
Get a list of Modules that this module depends on. |
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. |
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. |
boolean |
isEnabled()
|
void |
recordEndTimeComp(IOFMessageListener listener)
|
void |
recordEndTimePktIn(IOFSwitch sw,
OFMessage m,
FloodlightContext cntx)
|
void |
recordStartTimeComp(IOFMessageListener listener)
Stores a timestamp in ns. |
void |
recordStartTimePktIn()
|
void |
setEnabled(boolean enabled)
|
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 NullPktInProcessingTime()
Method Detail |
---|
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices
in interface IFloodlightModule
public java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls
in interface IFloodlightModule
public 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 IFloodlightModule
FloodlightModuleException
public void startUp(FloodlightModuleContext context)
IFloodlightModule
startUp
in interface IFloodlightModule
public boolean isEnabled()
isEnabled
in interface IPktInProcessingTimeService
public void bootstrap(java.util.List<IOFMessageListener> listeners)
IPktInProcessingTimeService
bootstrap
in interface IPktInProcessingTimeService
listeners
- The message listeners to create time buckets forpublic void recordStartTimeComp(IOFMessageListener listener)
IPktInProcessingTimeService
recordStartTimeComp
in interface IPktInProcessingTimeService
public void recordEndTimeComp(IOFMessageListener listener)
recordEndTimeComp
in interface IPktInProcessingTimeService
public void recordStartTimePktIn()
recordStartTimePktIn
in interface IPktInProcessingTimeService
public void recordEndTimePktIn(IOFSwitch sw, OFMessage m, FloodlightContext cntx)
recordEndTimePktIn
in interface IPktInProcessingTimeService
public void setEnabled(boolean enabled)
setEnabled
in interface IPktInProcessingTimeService
public CumulativeTimeBucket getCtb()
getCtb
in interface IPktInProcessingTimeService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |