|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CompletionWorker
public class CompletionWorker
This handler accepts BufferElement and sends an ack of ACK_SIZE to the TCP connection previously established by a TaskRecvWorker.
Field Summary | |
---|---|
private byte[] |
ack
|
private static int |
ACK_SIZE
|
private byte[] |
ack_tagged
|
private BufferElement |
buf
|
private BufferElement |
buf_tagged
|
private static boolean |
DEBUG
|
private int |
num_received
|
private ATcpConnection |
outgoingConnection
|
Constructor Summary | |
---|---|
CompletionWorker()
|
Method Summary | |
---|---|
void |
destroy()
Called when an event handler is destroyed. |
void |
handleEvent(QueueElementIF item)
Handle the event corresponding to the given QueueElementIF. |
void |
handleEvents(QueueElementIF[] items)
Handle the events corresponding to the given QueueElementIF array. |
void |
init(ConfigDataIF config)
Called when an event handler is initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean DEBUG
private ATcpConnection outgoingConnection
private static final int ACK_SIZE
private int num_received
private byte[] ack
private byte[] ack_tagged
private BufferElement buf
private BufferElement buf_tagged
Constructor Detail |
---|
public CompletionWorker()
Method Detail |
---|
public void init(ConfigDataIF config)
EventHandlerIF
init
in interface EventHandlerIF
config
- The set of configuration parameters for the stage.public void destroy()
EventHandlerIF
destroy
in interface EventHandlerIF
public void handleEvent(QueueElementIF item)
EventHandlerIF
handleEvent
in interface EventHandlerIF
public void handleEvents(QueueElementIF[] items)
EventHandlerIF
handleEvents
in interface EventHandlerIF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |