public class ITaskHookDelegate extends java.lang.Object implements ITaskHook
Constructor and Description |
---|
ITaskHookDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
addHook(ITaskHook hook) |
void |
boltAck(BoltAckInfo info)
Called in bolt everytime a tuple gets acked
|
void |
boltExecute(BoltExecuteInfo info)
Called in bolt everytime a tuple gets executed
|
void |
boltFail(BoltFailInfo info)
Called in bolt everytime a tuple gets failed
|
void |
cleanup()
Called just before the spout/bolt's cleanup method is called.
|
void |
emit(EmitInfo info)
Called everytime a tuple is emitted in spout/bolt
|
java.util.Map |
getConf() |
java.util.List<ITaskHook> |
getHooks() |
void |
prepare(java.util.Map<java.lang.String,java.lang.Object> newConf,
TopologyContext context)
Called after the spout/bolt's open/prepare method is called
conf is the Config thats passed to the topology
|
void |
spoutAck(SpoutAckInfo info)
Called in spout everytime a tuple gets acked
|
void |
spoutFail(SpoutFailInfo info)
Called in spout everytime a tuple gets failed
|
public void addHook(ITaskHook hook)
public java.util.List<ITaskHook> getHooks()
public java.util.Map getConf()
public void prepare(java.util.Map<java.lang.String,java.lang.Object> newConf, TopologyContext context)
ITaskHook
public void cleanup()
ITaskHook
public void emit(EmitInfo info)
ITaskHook
public void spoutAck(SpoutAckInfo info)
ITaskHook
public void spoutFail(SpoutFailInfo info)
ITaskHook
public void boltAck(BoltAckInfo info)
ITaskHook
public void boltFail(BoltFailInfo info)
ITaskHook
public void boltExecute(BoltExecuteInfo info)
ITaskHook
boltExecute
in interface ITaskHook