Package com.unitesk.aspectrace.common
Class AbstractCommonListener
- java.lang.Object
-
- com.unitesk.aspectrace.common.AbstractCommonListener
-
- All Implemented Interfaces:
AspectListener
,CommonListener
- Direct Known Subclasses:
TraceTracker
public abstract class AbstractCommonListener extends java.lang.Object implements CommonListener
The empty handler of empty aspect messages. Defines all necessary methods with empty realizations. The methodprocessTagChange(TagMessage)
must not be called thus his realization throws an exception.
-
-
Constructor Summary
Constructors Constructor Description AbstractCommonListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachedToAdapter(java.lang.String aspect, AspectAdapter adapter)
Notifies the listener about it's connection to adapter.void
processChannelMessage(ChannelMessage msg)
Message which defines a channel.void
processGlobalTagChange(TagMessage msg)
Changes tags and synchronized messages for other aspects.void
processingFinished(java.lang.String traceDesc, boolean normally)
Notifies about processing end of the trace source.void
processingStarted(java.lang.String traceDesc)
Notifies about processing start of the trace source.void
processTagChange(TagMessage msg)
Changes set of tags for this aspect.
-
-
-
Method Detail
-
attachedToAdapter
public void attachedToAdapter(java.lang.String aspect, AspectAdapter adapter) throws java.lang.IllegalStateException
Description copied from interface:AspectListener
Notifies the listener about it's connection to adapter.- Specified by:
attachedToAdapter
in interfaceAspectListener
- Parameters:
aspect
- Related aspectadapter
- Connected adapter- Throws:
java.lang.IllegalStateException
-
processingStarted
public void processingStarted(java.lang.String traceDesc)
Description copied from interface:CommonListener
Notifies about processing start of the trace source.- Specified by:
processingStarted
in interfaceCommonListener
- Parameters:
traceDesc
- Definition of the trace source (for common files - filename).
-
processGlobalTagChange
public void processGlobalTagChange(TagMessage msg)
Description copied from interface:CommonListener
Changes tags and synchronized messages for other aspects. Note: an empty aspect must not have its own tags. If it nonetheless has then they are processed viaAspectListener.processTagChange(TagMessage)
method.- Specified by:
processGlobalTagChange
in interfaceCommonListener
-
processChannelMessage
public void processChannelMessage(ChannelMessage msg)
Description copied from interface:CommonListener
Message which defines a channel.- Specified by:
processChannelMessage
in interfaceCommonListener
-
processingFinished
public void processingFinished(java.lang.String traceDesc, boolean normally)
Description copied from interface:CommonListener
Notifies about processing end of the trace source.- Specified by:
processingFinished
in interfaceCommonListener
- Parameters:
traceDesc
- Definition of the trace source (for common files - filename).normally
-true
if processing ends normally,false
otherwise (IOException, syntax error, etc.)
-
processTagChange
public void processTagChange(TagMessage msg)
Description copied from interface:AspectListener
Changes set of tags for this aspect.- Specified by:
processTagChange
in interfaceAspectListener
-
-