Package org.apache.storm.executor
Class ExecutorTransfer
java.lang.Object
org.apache.storm.executor.ExecutorTransfer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
getLocalQueue
(AddressedTuple tuple) void
boolean
tryTransfer
(AddressedTuple addressedTuple, Queue<AddressedTuple> pendingEmits) boolean
tryTransferLocal
(AddressedTuple tuple, JCQueue localQueue, Queue<AddressedTuple> pendingEmits) Adds tuple to localQueue (if overflow is empty).
-
Constructor Details
-
ExecutorTransfer
-
-
Method Details
-
initLocalRecvQueues
public void initLocalRecvQueues() -
tryTransfer
-
flush
- Throws:
InterruptedException
-
getLocalQueue
-
tryTransferLocal
public boolean tryTransferLocal(AddressedTuple tuple, JCQueue localQueue, Queue<AddressedTuple> pendingEmits) Adds tuple to localQueue (if overflow is empty). If localQueue is full adds to pendingEmits instead. pendingEmits can be null. Returns false if unable to add to localQueue.
-