org.jgroups.log
Class SystemTracer

java.lang.Object
  extended byorg.jgroups.log.Tracer
      extended byorg.jgroups.log.SystemTracer
Direct Known Subclasses:
SystemErrTracer, SystemOutTracer

public abstract class SystemTracer
extends Tracer

Abstract superclass of SystemOutTracer and SystemErrTracer; avoids ever closing output stream.


Field Summary
 
Fields inherited from class org.jgroups.log.Tracer
autoFlush, closed, level, module, timestampFormat
 
Method Summary
 void close()
          Flushes any pending output (by calling flush) but does not close the output stream (System.err or System.out).
protected  void doClose()
          Flushes any pending output (by calling flush) and closes the output file, stream, writer, or socket associated with this tracer.
 
Methods inherited from class org.jgroups.log.Tracer
doFlush, doPrint, flush, getAutoFlush, getLevel, getModule, logString, logString, print, print, setAutoFlush, setLevel, setTimestampFormat, timestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
Flushes any pending output (by calling flush) but does not close the output stream (System.err or System.out).

After this method has been called, all calls to print will still be successful.

Overrides:
close in class Tracer

doClose

protected void doClose()
Description copied from class: Tracer
Flushes any pending output (by calling flush) and closes the output file, stream, writer, or socket associated with this tracer. Called from close, but only if not alread closed.

After closed has been called, all calls to print, flush, and close are ignored.

Specified by:
doClose in class Tracer


Copyright © 2001,2002 www.jgroups.com . All Rights Reserved.