Class SimpleTraceAnalyzer

  • All Implemented Interfaces:
    org.simpleframework.transport.trace.TraceAnalyzer

    public class SimpleTraceAnalyzer
    extends java.lang.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.

    • Field Detail

      • factory

        private final java.util.concurrent.ThreadFactory factory
      • active

        private final java.util.concurrent.atomic.AtomicBoolean active
      • count

        private final java.util.concurrent.atomic.AtomicLong count
    • Constructor Detail

      • SimpleTraceAnalyzer

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

      • isActive

        public boolean isActive()
      • attach

        public org.simpleframework.transport.trace.Trace attach​(java.nio.channels.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