IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.base
Class TraceBuffer

java.lang.Object
  extended bycom.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
 TraceLine pop()
          Reads and removes the oldest entry in the buffer.
 void push(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 TraceLine pop()
              throws java.lang.InterruptedException
Reads and removes the oldest entry in the buffer.

Returns:
com.ibm.dse.base.TraceLine
Throws:
java.lang.InterruptedException

push

public void push(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
Throws:
java.lang.InterruptedException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005