public class MessageTraceManagerImpl extends Object implements MessageTraceManager
| Constructor and Description |
|---|
MessageTraceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Discard all messages accumulated since the last call to
clear.
|
void |
enable(boolean flag)
Called with flag=true to enable capture of messages.
|
byte[] |
getBytes(ByteBuffer bb,
int offset)
Return the contents of the byte buffer.
|
byte[][] |
getDataReceived()
Return an array of messages (represented as byte[]) for the
message(s) received since the last call to clear().
|
byte[][] |
getDataSent()
Return an array of messages (represented as byte[]) for the
message(s) sent on this thread since the last call to clear().
|
boolean |
isEnabled()
Returns true if messages are to be captured on this thread, otherwise
false.
|
void |
recordBodyReceived(ByteBuffer message) |
void |
recordDataSent(ByteBuffer message) |
void |
recordHeaderReceived(ByteBuffer message) |
public void clear()
MessageTraceManagerclear in interface MessageTraceManagerpublic boolean isEnabled()
MessageTraceManagerisEnabled in interface MessageTraceManagerpublic void enable(boolean flag)
MessageTraceManagerenable in interface MessageTraceManagerpublic byte[][] getDataSent()
MessageTraceManagergetDataSent in interface MessageTraceManagerpublic byte[][] getDataReceived()
MessageTraceManagergetDataReceived in interface MessageTraceManagerpublic byte[] getBytes(ByteBuffer bb, int offset)
public void recordDataSent(ByteBuffer message)
recordDataSent in interface MessageTraceManagerpublic void recordHeaderReceived(ByteBuffer message)
public void recordBodyReceived(ByteBuffer message)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.