Class SimpleTraceAnalyzer

java.lang.Object
org.glassfish.jersey.simple.SimpleTraceAnalyzer
All Implemented Interfaces:
org.simpleframework.transport.trace.TraceAnalyzer

public class SimpleTraceAnalyzer extends Object implements org.simpleframework.transport.trace.TraceAnalyzer
Tracing at a very low level can be performed with a TraceAnalyzer. This provides much more useful information than the conventional LoggingFilter in that it provides details at a very low level. This is very useful when monitoring performance interactions at the TCP level between clients and servers.

Performance overhead for the server is minimal as events are pumped out in batches. The amount of logging information will increase quite significantly though.

Author:
Niall Gallagher
  • Constructor Details

    • SimpleTraceAnalyzer

      public SimpleTraceAnalyzer()
      Creates an asynchronous trace event logger.
  • Method Details

    • isActive

      public boolean isActive()
    • attach

      public org.simpleframework.transport.trace.Trace attach(SelectableChannel channel)
      Specified by:
      attach in interface org.simpleframework.transport.trace.TraceAnalyzer
    • start

      public void start()
      Begin logging trace events to the underlying logger.
    • stop

      public void stop()
      Specified by:
      stop in interface org.simpleframework.transport.trace.TraceAnalyzer