Open Kilda Java Documentation
org.openkilda.simulator.bolts.SpeakerBolt Class Reference
Inheritance diagram for org.openkilda.simulator.bolts.SpeakerBolt:

Classes

enum  TupleFields
 

Public Member Functions

ISwitchImpl getSwitch (SwitchId name) throws Exception
 
void doSimulatorCommand (Tuple tuple) throws Exception
 
void doCommand (Tuple tuple) throws Exception
 
void prepare (Map map, TopologyContext topologyContext, OutputCollector outputCollector)
 
void execute (Tuple tuple)
 
void declareOutputFields (OutputFieldsDeclarer outputFieldsDeclarer)
 

Protected Member Functions

String makeSwitchMessage (ISwitchImpl sw, SwitchState state) throws IOException
 
String makePortMessage (ISwitchImpl sw, int portNum, PortChangeType type) throws IOException
 
List< Values > addSwitch (AddSwitchCommand data) throws Exception
 
List< Values > addSwitch (SwitchMessage switchMessage) throws Exception
 
void discoverIsl (Tuple tuple, DiscoverIslCommandData data) throws Exception
 
void discoverIslPartTwo (Tuple tuple, IslInfoData data) throws Exception
 
List< Values > addLink (AddLinkCommandMessage message) throws Exception
 
List< Values > modPort (PortModMessage message) throws Exception
 

Protected Attributes

Map< SwitchId, ISwitchImplswitches
 

Detailed Description

Definition at line 63 of file SpeakerBolt.java.

Member Function Documentation

◆ addLink()

List<Values> org.openkilda.simulator.bolts.SpeakerBolt.addLink ( AddLinkCommandMessage  message) throws Exception
protected

Definition at line 212 of file SpeakerBolt.java.

◆ addSwitch() [1/2]

List<Values> org.openkilda.simulator.bolts.SpeakerBolt.addSwitch ( AddSwitchCommand  data) throws Exception
protected

Definition at line 104 of file SpeakerBolt.java.

◆ addSwitch() [2/2]

List<Values> org.openkilda.simulator.bolts.SpeakerBolt.addSwitch ( SwitchMessage  switchMessage) throws Exception
protected

Definition at line 116 of file SpeakerBolt.java.

◆ declareOutputFields()

void org.openkilda.simulator.bolts.SpeakerBolt.declareOutputFields ( OutputFieldsDeclarer  outputFieldsDeclarer)

Definition at line 373 of file SpeakerBolt.java.

◆ discoverIsl()

void org.openkilda.simulator.bolts.SpeakerBolt.discoverIsl ( Tuple  tuple,
DiscoverIslCommandData  data 
) throws Exception
protected

Definition at line 151 of file SpeakerBolt.java.

◆ discoverIslPartTwo()

void org.openkilda.simulator.bolts.SpeakerBolt.discoverIslPartTwo ( Tuple  tuple,
IslInfoData  data 
) throws Exception
protected

Definition at line 189 of file SpeakerBolt.java.

◆ doCommand()

void org.openkilda.simulator.bolts.SpeakerBolt.doCommand ( Tuple  tuple) throws Exception

Execute command in the tuple.

Parameters
tupletuple.
Exceptions
Exceptionexception of unknown switch command.

Definition at line 306 of file SpeakerBolt.java.

◆ doSimulatorCommand()

void org.openkilda.simulator.bolts.SpeakerBolt.doSimulatorCommand ( Tuple  tuple) throws Exception

Execute simulator command in the tuple.

Parameters
tupletuple.
Exceptions
Exceptionexception of unknown switch command.

Definition at line 259 of file SpeakerBolt.java.

◆ execute()

void org.openkilda.simulator.bolts.SpeakerBolt.execute ( Tuple  tuple)

Definition at line 348 of file SpeakerBolt.java.

◆ getSwitch()

ISwitchImpl org.openkilda.simulator.bolts.SpeakerBolt.getSwitch ( SwitchId  name) throws Exception

Return the switch.

Parameters
nameswitch id.
Returns
the switch.
Exceptions
Exceptionexception of switch not found.

Definition at line 245 of file SpeakerBolt.java.

◆ makePortMessage()

String org.openkilda.simulator.bolts.SpeakerBolt.makePortMessage ( ISwitchImpl  sw,
int  portNum,
PortChangeType  type 
) throws IOException
protected

Definition at line 90 of file SpeakerBolt.java.

◆ makeSwitchMessage()

String org.openkilda.simulator.bolts.SpeakerBolt.makeSwitchMessage ( ISwitchImpl  sw,
SwitchState  state 
) throws IOException
protected

Definition at line 73 of file SpeakerBolt.java.

◆ modPort()

List<Values> org.openkilda.simulator.bolts.SpeakerBolt.modPort ( PortModMessage  message) throws Exception
protected

Definition at line 229 of file SpeakerBolt.java.

◆ prepare()

void org.openkilda.simulator.bolts.SpeakerBolt.prepare ( Map  map,
TopologyContext  topologyContext,
OutputCollector  outputCollector 
)

Definition at line 341 of file SpeakerBolt.java.

Member Data Documentation

◆ switches

Map<SwitchId, ISwitchImpl> org.openkilda.simulator.bolts.SpeakerBolt.switches
protected

Definition at line 66 of file SpeakerBolt.java.


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