Package com.unitesk.aspectrace.tracer
Class TraceToProcessor
- java.lang.Object
-
- com.unitesk.aspectrace.TraceProvider
-
- com.unitesk.aspectrace.tracer.TraceToProcessor
-
- All Implemented Interfaces:
Tracer.Channel
public class TraceToProcessor extends TraceProvider implements Tracer.Channel
Converts a trace to a trace PUSH-source. Writes the trace which comes from aspect tracers viaTracer
directly to adapters without external representation.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SOURCE_DESC
-
Constructor Summary
Constructors Constructor Description TraceToProcessor(TraceProcessorManager tpm)
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class com.unitesk.aspectrace.TraceProvider
addProcessorTag, addProviderTag, attachToManager, fireMessage, fireMessage, fireSyncMessage, fireTagMessage, fireTraceEnd, fireTraceStart, getAdapter, getAllTags, getTags, process, removeAdapter, removeProcessorTag, removeProviderTag, setAdapter
-
-
-
-
Field Detail
-
SOURCE_DESC
public static final java.lang.String SOURCE_DESC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TraceToProcessor
public TraceToProcessor(TraceProcessorManager tpm)
-
-
Method Detail
-
startTrace
public void startTrace(java.util.Properties props)
Description copied from interface:Tracer.Channel
Starts trace.- Specified by:
startTrace
in interfaceTracer.Channel
- Parameters:
props
- Conf.
-
dispatch
public void dispatch(AbstractTraceMessage msg) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
Description copied from interface:Tracer.Channel
Processes trace message.- Specified by:
dispatch
in interfaceTracer.Channel
- Parameters:
msg
- Trace message. Realizations must recognize following message types:TraceMessage
,TagMessage
,DebugMessage
- Throws:
java.lang.IllegalStateException
- Trace has not begun yet or conf error.java.lang.IllegalArgumentException
- Configuration internal problems.
-
endTrace
public void endTrace()
Description copied from interface:Tracer.Channel
Ends a trace.- Specified by:
endTrace
in interfaceTracer.Channel
-
-