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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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[][]
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
recordDataSent(java.nio.ByteBuffer message)
-
-
-
Method Detail
-
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
void recordDataSent(java.nio.ByteBuffer message)
-
-