Constructor and Description |
---|
BoltInstance(PhysicalPlanHelper helper,
Communicator<HeronTuples.HeronTupleSet> streamInQueue,
Communicator<HeronTuples.HeronTupleSet> streamOutQueue,
SlaveLooper looper) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate the instance
|
void |
deactivate()
Deactivate the instance
|
void |
readTuplesAndExecute(Communicator<HeronTuples.HeronTupleSet> inQueue)
Read tuples from a queue and process the tuples
|
void |
start()
Do the basic setup for HeronInstance
|
void |
stop()
Do the basic clean for HeronInstance
Notice: this method is not guaranteed to invoke
TODO: - to avoid confusing, we in fact have never called this method yet
TODO: - need to consider whether or not call this method more carefully
|
public BoltInstance(PhysicalPlanHelper helper, Communicator<HeronTuples.HeronTupleSet> streamInQueue, Communicator<HeronTuples.HeronTupleSet> streamOutQueue, SlaveLooper looper)
public void start()
IInstance
public void stop()
IInstance
public void readTuplesAndExecute(Communicator<HeronTuples.HeronTupleSet> inQueue)
IInstance
readTuplesAndExecute
in interface IInstance
inQueue
- the queue to read tuples frompublic void activate()
IInstance
public void deactivate()
IInstance
deactivate
in interface IInstance