Package tests.MSOM
Class Emitter
- All Implemented Interfaces:
Runnable
Emitter receives commands from the external and send to workers what to do. Also received feedbacks from Collector as ACK and if there is a new task to execute.
For other informations about MSOM read the thesis.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) boolean(package private) intFields inherited from class bbflow.defaultEmitter
BROADCAST, ROUNDROBIN, SCATTERFields inherited from class bbflow.defaultJob
combined, combined_side, CUSTOM_FUNCTION, id, in, INLINE, INLINE_MULTI, out, runType -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class bbflow.defaultEmitter
preloadMethods inherited from class bbflow.defaultJob
addInputChannel, addOutputChannel, getInputChannel, getOutputChannel, init, removeInputChannel, removeOutputChannel, run, runJob, runJobMulti, sendEOS, sendEOS, sendOut, sendOut, sendOutTo, sendOutTo, sendOutToAll, setId, uniqueJob, uniqueJob
-
Field Details
-
command_channel
int command_channel -
feedback_channel
int feedback_channel -
commandRunning
boolean commandRunning
-
-
Constructor Details
-
Emitter
public Emitter()
-
-
Method Details
-
runJob
public void runJob()Description copied from class:defaultJobblank function that should be overwritten by class extending bbflow.defaultJob. Here main computation task is done once we're sure there's data in at least one of the input channels Lists 'in' and 'out' must be used manually and EOS() must be managed by the user.- Overrides:
runJobin classdefaultEmitter<SOMData>
-
EOS
public void EOS()Description copied from class:defaultJobEOS() function to override- Overrides:
EOSin classdefaultJob<SOMData,SOMData>
-