orc.trace
Class OutputStreamTracer

java.lang.Object
  extended by orc.trace.Tracer
      extended by orc.trace.AbstractTracer
          extended by orc.trace.OutputStreamTracer

public class OutputStreamTracer
extends AbstractTracer

Serialize and gzip events to an OutputStream. The output stream will be closed when the execution is finished. You can read the events back with an InputStreamEventCursor.

Author:
quark

Constructor Summary
OutputStreamTracer(java.io.OutputStream out)
           
 
Method Summary
 void finish()
          End an execution.
protected  void record(Handle<? extends Event> event)
           
 
Methods inherited from class orc.trace.AbstractTracer
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamTracer

public OutputStreamTracer(java.io.OutputStream out)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

record

protected void record(Handle<? extends Event> event)
Specified by:
record in class AbstractTracer

finish

public void finish()
Description copied from class: Tracer
End an execution.

Specified by:
finish in class Tracer