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

Public Member Functions

void switchAdded (final DatapathId switchId)
 
void switchRemoved (final DatapathId switchId)
 
void switchActivated (final DatapathId switchId)
 
void switchPortChanged (final DatapathId switchId, final OFPortDesc port, final PortChangeType type)
 
void switchChanged (final DatapathId switchId)
 
void switchDeactivated (final DatapathId switchId)
 
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
 

Static Public Member Functions

static boolean isPhysicalPort (OFPort p)
 
static Message buildSwitchMessage (final IOFSwitch sw, final SwitchState eventType)
 
static Message buildSwitchMessage (final DatapathId switchId, final SwitchState eventType)
 
static Message buildMessage (final InfoData data)
 
static Message buildPortMessage (final DatapathId switchId, final OFPort port, final PortChangeType type)
 

Detailed Description

Definition at line 53 of file SwitchEventCollector.java.

Member Function Documentation

◆ buildMessage()

static Message org.openkilda.floodlight.switchmanager.SwitchEventCollector.buildMessage ( final InfoData  data)
static

Builds a generic message object.

Parameters
datadata to use in the message body
Returns
Message

Definition at line 297 of file SwitchEventCollector.java.

◆ buildPortMessage()

static Message org.openkilda.floodlight.switchmanager.SwitchEventCollector.buildPortMessage ( final DatapathId  switchId,
final OFPort  port,
final PortChangeType  type 
)
static

Builds a port state change message with port number.

Parameters
switchIddatapathId of switch
portport that triggered the event
typetype of port event
Returns
Message

Definition at line 309 of file SwitchEventCollector.java.

◆ buildSwitchMessage() [1/2]

static Message org.openkilda.floodlight.switchmanager.SwitchEventCollector.buildSwitchMessage ( final IOFSwitch  sw,
final SwitchState  eventType 
)
static

Builds a switch message type.

Parameters
swswitch instance
eventTypetype of event
Returns
Message

Definition at line 272 of file SwitchEventCollector.java.

◆ buildSwitchMessage() [2/2]

static Message org.openkilda.floodlight.switchmanager.SwitchEventCollector.buildSwitchMessage ( final DatapathId  switchId,
final SwitchState  eventType 
)
static

Builds a switch message type.

Parameters
switchIdswitch id
eventTypetype of event
Returns
Message

Definition at line 283 of file SwitchEventCollector.java.

◆ getModuleDependencies()

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

Definition at line 217 of file SwitchEventCollector.java.

◆ getModuleServices()

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

Definition at line 197 of file SwitchEventCollector.java.

◆ getServiceImpls()

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

Definition at line 207 of file SwitchEventCollector.java.

◆ init()

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

Definition at line 229 of file SwitchEventCollector.java.

◆ isPhysicalPort()

static boolean org.openkilda.floodlight.switchmanager.SwitchEventCollector.isPhysicalPort ( OFPort  p)
static

Return true if port is physical.

Parameters
pport.
Returns
true if port is physical.

Definition at line 143 of file SwitchEventCollector.java.

◆ startUp()

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

Definition at line 247 of file SwitchEventCollector.java.

◆ switchActivated()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchActivated ( final DatapathId  switchId)

Definition at line 107 of file SwitchEventCollector.java.

◆ switchAdded()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchAdded ( final DatapathId  switchId)

Definition at line 86 of file SwitchEventCollector.java.

◆ switchChanged()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchChanged ( final DatapathId  switchId)

Definition at line 173 of file SwitchEventCollector.java.

◆ switchDeactivated()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchDeactivated ( final DatapathId  switchId)

Definition at line 187 of file SwitchEventCollector.java.

◆ switchPortChanged()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchPortChanged ( final DatapathId  switchId,
final OFPortDesc  port,
final PortChangeType  type 
)

Definition at line 161 of file SwitchEventCollector.java.

◆ switchRemoved()

void org.openkilda.floodlight.switchmanager.SwitchEventCollector.switchRemoved ( final DatapathId  switchId)

Definition at line 96 of file SwitchEventCollector.java.


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