|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.floodlightcontroller.counter.NullCounterStore
public class NullCounterStore
An ICounsterStoreService implementation that does nothing. This is used mainly for performance testing or if you don't want to use the counterstore.
Field Summary |
---|
Fields inherited from interface net.floodlightcontroller.counter.ICounterStoreService |
---|
BROADCAST, CONTROLLER_NAME, L3ET_IPV4, MULTICAST, TitleDelimitor, UNICAST |
Constructor Summary | |
---|---|
NullCounterStore()
|
Method Summary | |
---|---|
ICounter |
createCounter(java.lang.String key,
CounterValue.CounterType type)
Create a new ICounter and set the title. |
java.util.Map<java.lang.String,ICounter> |
getAll()
Returns an immutable map of title:counter with all of the counters in the store. |
java.util.List<java.lang.String> |
getAllCategories(java.lang.String counterName,
CounterStore.NetworkLayer layer)
Retrieve a list of subCategories by counterName. |
ICounter |
getCounter(java.lang.String key)
Retrieves a counter with the given title, or null if none can be found. |
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. |
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. |
void |
updateFlush()
Flush Local Counter Updates |
void |
updatePacketInCountersLocal(IOFSwitch sw,
OFMessage m,
Ethernet eth)
Update packetIn counters |
void |
updatePktOutFMCounterStoreLocal(IOFSwitch sw,
OFMessage ofMsg)
This method can only be used to update packetOut and flowmod counters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullCounterStore()
Method Detail |
---|
public void updatePacketInCountersLocal(IOFSwitch sw, OFMessage m, Ethernet eth)
ICounterStoreService
updatePacketInCountersLocal
in interface ICounterStoreService
public void updatePktOutFMCounterStoreLocal(IOFSwitch sw, OFMessage ofMsg)
ICounterStoreService
updatePktOutFMCounterStoreLocal
in interface ICounterStoreService
public void updateFlush()
ICounterStoreService
updateFlush
in interface ICounterStoreService
public java.util.List<java.lang.String> getAllCategories(java.lang.String counterName, CounterStore.NetworkLayer layer)
ICounterStoreService
getAllCategories
in interface ICounterStoreService
public ICounter createCounter(java.lang.String key, CounterValue.CounterType type)
ICounterStoreService
createCounter
in interface ICounterStoreService
public ICounter getCounter(java.lang.String key)
ICounterStoreService
getCounter
in interface ICounterStoreService
public java.util.Map<java.lang.String,ICounter> getAll()
ICounterStoreService
getAll
in interface ICounterStoreService
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |