Class Tracer.FormattedChannel

    • Method Detail

      • startTrace

        public void startTrace​(java.util.Properties props)
                        throws java.io.IOException,
                               java.lang.IllegalStateException,
                               java.lang.IllegalArgumentException
        Description copied from interface: Tracer.Channel
        Starts trace.
        Specified by:
        startTrace in interface Tracer.Channel
        Parameters:
        props - Conf.
        Throws:
        java.io.IOException - Input-output error.
        java.lang.IllegalStateException - Impossible to start trace, trace has already begun or conf error.
        java.lang.IllegalArgumentException - Invalid properties in props.
      • dispatch

        public void dispatch​(AbstractTraceMessage msg)
                      throws java.io.IOException,
                             java.lang.IllegalStateException,
                             java.lang.IllegalArgumentException
        Description copied from interface: Tracer.Channel
        Processes trace message.
        Specified by:
        dispatch in interface Tracer.Channel
        Parameters:
        msg - Trace message. Realizations must recognize following message types: TraceMessage, TagMessage, DebugMessage
        Throws:
        java.io.IOException - Input-output error.
        java.lang.IllegalStateException - Trace has not begun yet or conf error.
        java.lang.IllegalArgumentException - Configuration internal problems.
      • endTrace

        public void endTrace()
                      throws java.io.IOException,
                             java.lang.IllegalStateException,
                             java.lang.IllegalArgumentException
        Description copied from interface: Tracer.Channel
        Ends a trace.
        Specified by:
        endTrace in interface Tracer.Channel
        Throws:
        java.io.IOException - Input-output error.
        java.lang.IllegalStateException - Trace has not begun yet or conf error.
        java.lang.IllegalArgumentException - Configuration internal problems.