com.ibm.dse.base
Class TraceBuffer

java.lang.Object
  |
  +--com.ibm.dse.base.TraceBuffer

public class TraceBuffer
extends java.lang.Object

This class creates an intermediate buffer used in performing a trace. This isolates the application as much as possible from the performance impact of doing the trace.


Constructor Summary
TraceBuffer(int maxLines)
          This constructor creates a TraceBuffer object with a size of maxLines.
 
Method Summary
 com.ibm.dse.base.TraceLine pop()
          Reads and removes the oldest entry in the buffer.
 void push(com.ibm.dse.base.TraceLine aLine)
          Stores a new entry in the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceBuffer

public TraceBuffer(int maxLines)
This constructor creates a TraceBuffer object with a size of maxLines.
Parameters:
maxLines - int
Method Detail

pop

public com.ibm.dse.base.TraceLine pop()
                               throws java.lang.InterruptedException
Reads and removes the oldest entry in the buffer.
Returns:
com.ibm.dse.base.TraceLine

push

public void push(com.ibm.dse.base.TraceLine aLine)
          throws java.lang.InterruptedException
Stores a new entry in the buffer. If there is not enough room in the buffer, the method waits until there is enough room.
Parameters:
aLine - com.ibm.dse.base.TraceLine