Package org.apache.storm.daemon.worker
Class WorkerTransfer
- java.lang.Object
-
- org.apache.storm.daemon.worker.WorkerTransfer
-
- All Implemented Interfaces:
org.apache.storm.shade.org.jctools.queues.MessagePassingQueue.Consumer<Object>,JCQueue.Consumer
public class WorkerTransfer extends Object implements JCQueue.Consumer
-
-
Constructor Summary
Constructors Constructor Description WorkerTransfer(WorkerState workerState, Map<String,Object> topologyConf, int maxTaskIdInTopo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Object tuple)voidflush()voidflushRemotes()JCQueuegetTransferQueue()voidhaltTransferThd()Utils.SmartThreadmakeTransferThread()booleantryFlushRemotes()booleantryTransferRemote(AddressedTuple addressedTuple, Queue<AddressedTuple> pendingEmits, ITupleSerializer serializer)
-
-
-
Constructor Detail
-
WorkerTransfer
public WorkerTransfer(WorkerState workerState, Map<String,Object> topologyConf, int maxTaskIdInTopo)
-
-
Method Detail
-
getTransferQueue
public JCQueue getTransferQueue()
-
makeTransferThread
public Utils.SmartThread makeTransferThread()
-
accept
public void accept(Object tuple)
- Specified by:
acceptin interfaceJCQueue.Consumer- Specified by:
acceptin interfaceorg.apache.storm.shade.org.jctools.queues.MessagePassingQueue.Consumer<Object>
-
flush
public void flush() throws InterruptedException- Specified by:
flushin interfaceJCQueue.Consumer- Throws:
InterruptedException
-
tryTransferRemote
public boolean tryTransferRemote(AddressedTuple addressedTuple, Queue<AddressedTuple> pendingEmits, ITupleSerializer serializer)
-
flushRemotes
public void flushRemotes() throws InterruptedException- Throws:
InterruptedException
-
tryFlushRemotes
public boolean tryFlushRemotes()
-
haltTransferThd
public void haltTransferThd()
-
-