Package bbflow
Class defaultEmitter<T>
java.lang.Object
bbflow.defaultJob<T,T>
bbflow.defaultEmitter<T>
- Type Parameters:
T
- Custom type of channels
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
Emitter
default Emitter of bbflow.ff_farm. Implemented various Communication models with workers: ROUNDROBIN, SCATTER, BROADCAST
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
(package private) int
static final int
Communications modelstatic final int
(package private) int
Fields inherited from class bbflow.defaultJob
combined, combined_side, CUSTOM_FUNCTION, id, in, INLINE, INLINE_MULTI, out, runType, sendpos
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class bbflow.defaultJob
addInputChannel, addOutputChannel, EOS, getInputChannel, getOutputChannel, init, removeInputChannel, removeOutputChannel, run, runJob, runJobMulti, sendEOS, sendEOS, sendOut, sendOut, sendOutTo, sendOutTo, sendOutToAll, setId, uniqueJob, uniqueJob
-
Field Details
-
ROUNDROBIN
public static final int ROUNDROBINCommunications model- See Also:
-
SCATTER
public static final int SCATTER- See Also:
-
BROADCAST
public static final int BROADCAST- See Also:
-
strategy
int strategy -
position
int position
-
-
Constructor Details
-
defaultEmitter
public defaultEmitter() -
defaultEmitter
public defaultEmitter(int strategy) default constructor- Parameters:
strategy
- Emitter communication strategy chosen between ROUNDROBIN, SCATTER and BROADCAST
-
-
Method Details
-
preload
public static void preload() -
runJob
public void runJob() throws InterruptedException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetExceptionDescription copied from class:defaultJob
blank 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:
runJob
in classdefaultJob<T,
T> - Throws:
InterruptedException
InstantiationException
IllegalAccessException
NoSuchMethodException
InvocationTargetException
-