Package com.unitesk.aspectrace
Interface Tracer.Channel
-
- All Known Implementing Classes:
Tracer.FormattedChannel
,TraceToProcessor
,TraceToStream
- Enclosing class:
- Tracer
public static interface Tracer.Channel
Trace stream. Maybe more than one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispatch(AbstractTraceMessage msg)
Processes trace message.void
endTrace()
Ends a trace.void
startTrace(java.util.Properties props)
Starts trace.
-
-
-
Method Detail
-
startTrace
void startTrace(java.util.Properties props) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
Starts trace.- 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 inprops
.
-
dispatch
void dispatch(AbstractTraceMessage msg) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
Processes trace message.- 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
void endTrace() throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
Ends a trace.- Throws:
java.io.IOException
- Input-output error.java.lang.IllegalStateException
- Trace has not begun yet or conf error.java.lang.IllegalArgumentException
- Configuration internal problems.
-
-