Package com.sun.corba.ee.spi.transport
Interface MessageTraceManager
- All Known Implementing Classes:
MessageTraceManagerImpl
public interface MessageTraceManager
Interface that supports capturing the GIOP messages for the
last non-co-located invocation in the current thread.
This enables easy capture of the GIOP messages for testing
purposes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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[][]
Return an array of messages (represented as byte[]) for the message(s) received since the last call to clear().byte[][]
Return an array of messages (represented as byte[]) for the message(s) sent on this thread since the last call to clear().boolean
Returns true if messages are to be captured on this thread, otherwise false.void
recordDataSent
(ByteBuffer message)
-
Method Details
-
clear
void clear()Discard all messages accumulated since the last call to clear. -
isEnabled
boolean isEnabled()Returns true if messages are to be captured on this thread, otherwise false.- Returns:
- if messages are captured
-
enable
void enable(boolean flag) Called with flag=true to enable capture of messages.- Parameters:
flag
- enable capture
-
getDataSent
byte[][] getDataSent()Return an array of messages (represented as byte[]) for the message(s) sent on this thread since the last call to clear(). If there is a Location Forward in this invocation, the the data returned will include all requests sent starting with the first request.- Returns:
- array of messages
-
getDataReceived
byte[][] getDataReceived()Return an array of messages (represented as byte[]) for the message(s) received since the last call to clear().- Returns:
- messages received
-
recordDataSent
-