Package org.apache.storm.executor.spout
Class SpoutOutputCollectorImpl
- java.lang.Object
-
- org.apache.storm.executor.spout.SpoutOutputCollectorImpl
-
- All Implemented Interfaces:
ISpoutOutputCollector,IErrorReporter
public class SpoutOutputCollectorImpl extends Object implements ISpoutOutputCollector
Methods are not thread safe. Each thread expected to have a separate instance, or else synchronize externally
-
-
Constructor Summary
Constructors Constructor Description SpoutOutputCollectorImpl(ISpout spout, SpoutExecutor executor, Task taskData, MutableLong emittedCount, boolean hasAckers, Random random, Boolean isEventLoggers, Boolean isDebug, RotatingMap<Long,TupleInfo> pending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>emit(String streamId, List<Object> tuple, Object messageId)Returns the task ids that received the tuples.voidemitDirect(int taskId, String streamId, List<Object> tuple, Object messageId)voidflush()longgetPendingCount()voidreportError(Throwable error)
-
-
-
Constructor Detail
-
SpoutOutputCollectorImpl
public SpoutOutputCollectorImpl(ISpout spout, SpoutExecutor executor, Task taskData, MutableLong emittedCount, boolean hasAckers, Random random, Boolean isEventLoggers, Boolean isDebug, RotatingMap<Long,TupleInfo> pending)
-
-
Method Detail
-
emit
public List<Integer> emit(String streamId, List<Object> tuple, Object messageId)
Description copied from interface:ISpoutOutputCollectorReturns the task ids that received the tuples.- Specified by:
emitin interfaceISpoutOutputCollector
-
emitDirect
public void emitDirect(int taskId, String streamId, List<Object> tuple, Object messageId)- Specified by:
emitDirectin interfaceISpoutOutputCollector
-
flush
public void flush()
- Specified by:
flushin interfaceISpoutOutputCollector
-
getPendingCount
public long getPendingCount()
- Specified by:
getPendingCountin interfaceISpoutOutputCollector
-
reportError
public void reportError(Throwable error)
- Specified by:
reportErrorin interfaceIErrorReporter
-
-