Open Kilda Java Documentation
org.openkilda.floodlight.MockSwitchManager Class Reference
Inheritance diagram for org.openkilda.floodlight.MockSwitchManager:

Public Member Functions

 MockSwitchManager ()
 
void switchAdded (IOFSwitchBackend sw)
 
void switchDisconnected (IOFSwitchBackend sw)
 
void handshakeDisconnected (DatapathId dpid)
 
void notifyPortChanged (IOFSwitchBackend sw, OFPortDesc port, PortChangeType type)
 
IOFSwitchBackend getOFSwitchInstance (IOFConnectionBackend connection, SwitchDescription description, OFFactory factory, DatapathId datapathId)
 
void handleMessage (IOFSwitchBackend sw, OFMessage m, FloodlightContext bContext)
 
void handleOutgoingMessage (IOFSwitch sw, OFMessage m)
 
void setSwitchHandshakeHandlers (Map< DatapathId, OFSwitchHandshakeHandler > handlers)
 
ImmutableList< OFSwitchHandshakeHandler > getSwitchHandshakeHandlers ()
 
void addOFSwitchDriver (String manufacturerDescriptionPrefix, IOFSwitchDriver driver)
 
void switchStatusChanged (IOFSwitchBackend sw, SwitchStatus oldStatus, SwitchStatus newStatus)
 
int getNumRequiredConnections ()
 
void addSwitchEvent (DatapathId switchDpid, String reason, boolean flushNow)
 
List< IAppHandshakePluginFactory > getHandshakePlugins ()
 
SwitchManagerCounters getCounters ()
 
boolean isCategoryRegistered (LogicalOFMessageCategory category)
 
void setSwitches (Map< DatapathId, IOFSwitch > switches)
 
Map< DatapathId, IOFSwitch > getAllSwitchMap ()
 
IOFSwitch getSwitch (DatapathId dpid)
 
IOFSwitch getActiveSwitch (DatapathId dpid)
 
void addOFSwitchListener (IOFSwitchListener listener)
 
void removeOFSwitchListener (IOFSwitchListener listener)
 
void registerLogicalOFMessageCategory (LogicalOFMessageCategory category)
 
void registerHandshakePlugin (IAppHandshakePluginFactory plugin)
 
Set< DatapathId > getAllSwitchDpids ()
 
Collection< Class<? extends IFloodlightService > > getModuleServices ()
 
Map< Class<? extends IFloodlightService >, IFloodlightService > getServiceImpls ()
 
Collection< Class<? extends IFloodlightService > > getModuleDependencies ()
 
void init (FloodlightModuleContext context) throws FloodlightModuleException
 
void startUp (FloodlightModuleContext context) throws FloodlightModuleException
 

Detailed Description

Definition at line 55 of file MockSwitchManager.java.

Constructor & Destructor Documentation

◆ MockSwitchManager()

org.openkilda.floodlight.MockSwitchManager.MockSwitchManager ( )

Definition at line 62 of file MockSwitchManager.java.

Member Function Documentation

◆ addOFSwitchDriver()

void org.openkilda.floodlight.MockSwitchManager.addOFSwitchDriver ( String  manufacturerDescriptionPrefix,
IOFSwitchDriver  driver 
)

Definition at line 124 of file MockSwitchManager.java.

◆ addOFSwitchListener()

void org.openkilda.floodlight.MockSwitchManager.addOFSwitchListener ( IOFSwitchListener  listener)

Definition at line 189 of file MockSwitchManager.java.

◆ addSwitchEvent()

void org.openkilda.floodlight.MockSwitchManager.addSwitchEvent ( DatapathId  switchDpid,
String  reason,
boolean  flushNow 
)

Definition at line 144 of file MockSwitchManager.java.

◆ getActiveSwitch()

IOFSwitch org.openkilda.floodlight.MockSwitchManager.getActiveSwitch ( DatapathId  dpid)

Definition at line 180 of file MockSwitchManager.java.

◆ getAllSwitchDpids()

Set<DatapathId> org.openkilda.floodlight.MockSwitchManager.getAllSwitchDpids ( )

Definition at line 210 of file MockSwitchManager.java.

◆ getAllSwitchMap()

Map<DatapathId, IOFSwitch> org.openkilda.floodlight.MockSwitchManager.getAllSwitchMap ( )

Definition at line 170 of file MockSwitchManager.java.

◆ getCounters()

SwitchManagerCounters org.openkilda.floodlight.MockSwitchManager.getCounters ( )

Definition at line 156 of file MockSwitchManager.java.

◆ getHandshakePlugins()

List<IAppHandshakePluginFactory> org.openkilda.floodlight.MockSwitchManager.getHandshakePlugins ( )

Definition at line 151 of file MockSwitchManager.java.

◆ getModuleDependencies()

Collection<Class<? extends IFloodlightService> > org.openkilda.floodlight.MockSwitchManager.getModuleDependencies ( )

Definition at line 236 of file MockSwitchManager.java.

◆ getModuleServices()

Collection<Class<? extends IFloodlightService> > org.openkilda.floodlight.MockSwitchManager.getModuleServices ( )

Definition at line 216 of file MockSwitchManager.java.

◆ getNumRequiredConnections()

int org.openkilda.floodlight.MockSwitchManager.getNumRequiredConnections ( )

Definition at line 139 of file MockSwitchManager.java.

◆ getOFSwitchInstance()

IOFSwitchBackend org.openkilda.floodlight.MockSwitchManager.getOFSwitchInstance ( IOFConnectionBackend  connection,
SwitchDescription  description,
OFFactory  factory,
DatapathId  datapathId 
)

Definition at line 95 of file MockSwitchManager.java.

◆ getServiceImpls()

Map<Class<? extends IFloodlightService>, IFloodlightService> org.openkilda.floodlight.MockSwitchManager.getServiceImpls ( )

Definition at line 225 of file MockSwitchManager.java.

◆ getSwitch()

IOFSwitch org.openkilda.floodlight.MockSwitchManager.getSwitch ( DatapathId  dpid)

Definition at line 175 of file MockSwitchManager.java.

◆ getSwitchHandshakeHandlers()

ImmutableList<OFSwitchHandshakeHandler> org.openkilda.floodlight.MockSwitchManager.getSwitchHandshakeHandlers ( )

Definition at line 119 of file MockSwitchManager.java.

◆ handleMessage()

void org.openkilda.floodlight.MockSwitchManager.handleMessage ( IOFSwitchBackend  sw,
OFMessage  m,
FloodlightContext  bContext 
)

Definition at line 102 of file MockSwitchManager.java.

◆ handleOutgoingMessage()

void org.openkilda.floodlight.MockSwitchManager.handleOutgoingMessage ( IOFSwitch  sw,
OFMessage  m 
)

Definition at line 109 of file MockSwitchManager.java.

◆ handshakeDisconnected()

void org.openkilda.floodlight.MockSwitchManager.handshakeDisconnected ( DatapathId  dpid)

Definition at line 82 of file MockSwitchManager.java.

◆ init()

void org.openkilda.floodlight.MockSwitchManager.init ( FloodlightModuleContext  context) throws FloodlightModuleException

Definition at line 241 of file MockSwitchManager.java.

◆ isCategoryRegistered()

boolean org.openkilda.floodlight.MockSwitchManager.isCategoryRegistered ( LogicalOFMessageCategory  category)

Definition at line 161 of file MockSwitchManager.java.

◆ notifyPortChanged()

void org.openkilda.floodlight.MockSwitchManager.notifyPortChanged ( IOFSwitchBackend  sw,
OFPortDesc  port,
PortChangeType  type 
)

Definition at line 87 of file MockSwitchManager.java.

◆ registerHandshakePlugin()

void org.openkilda.floodlight.MockSwitchManager.registerHandshakePlugin ( IAppHandshakePluginFactory  plugin)

Definition at line 204 of file MockSwitchManager.java.

◆ registerLogicalOFMessageCategory()

void org.openkilda.floodlight.MockSwitchManager.registerLogicalOFMessageCategory ( LogicalOFMessageCategory  category)

Definition at line 199 of file MockSwitchManager.java.

◆ removeOFSwitchListener()

void org.openkilda.floodlight.MockSwitchManager.removeOFSwitchListener ( IOFSwitchListener  listener)

Definition at line 194 of file MockSwitchManager.java.

◆ setSwitches()

void org.openkilda.floodlight.MockSwitchManager.setSwitches ( Map< DatapathId, IOFSwitch >  switches)

Definition at line 165 of file MockSwitchManager.java.

◆ setSwitchHandshakeHandlers()

void org.openkilda.floodlight.MockSwitchManager.setSwitchHandshakeHandlers ( Map< DatapathId, OFSwitchHandshakeHandler >  handlers)

Definition at line 114 of file MockSwitchManager.java.

◆ startUp()

void org.openkilda.floodlight.MockSwitchManager.startUp ( FloodlightModuleContext  context) throws FloodlightModuleException

Definition at line 246 of file MockSwitchManager.java.

◆ switchAdded()

void org.openkilda.floodlight.MockSwitchManager.switchAdded ( IOFSwitchBackend  sw)

Definition at line 70 of file MockSwitchManager.java.

◆ switchDisconnected()

void org.openkilda.floodlight.MockSwitchManager.switchDisconnected ( IOFSwitchBackend  sw)

Definition at line 76 of file MockSwitchManager.java.

◆ switchStatusChanged()

void org.openkilda.floodlight.MockSwitchManager.switchStatusChanged ( IOFSwitchBackend  sw,
SwitchStatus  oldStatus,
SwitchStatus  newStatus 
)

Definition at line 131 of file MockSwitchManager.java.


The documentation for this class was generated from the following file: