Package com.unitesk.aspectrace.sampleApp
Class TraceTracker
- java.lang.Object
-
- com.unitesk.aspectrace.common.AbstractCommonListener
-
- com.unitesk.aspectrace.sampleApp.TraceTracker
-
- All Implemented Interfaces:
AspectListener
,CommonListener
,ContextProvider<HtmlReportPage>
public class TraceTracker extends AbstractCommonListener implements ContextProvider<HtmlReportPage>
-
-
Constructor Summary
Constructors Constructor Description TraceTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlReportPage[]
getRelated(java.lang.String channel, HtmlReportPage target)
Получить контекстную информацию для элемента отчёта, соответствующего текущему (по порядку разбора трассы) событию.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.-
Methods inherited from class com.unitesk.aspectrace.common.AbstractCommonListener
attachedToAdapter, processChannelMessage, processGlobalTagChange, processTagChange
-
-
-
-
Method Detail
-
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
- Overrides:
processingStarted
in classAbstractCommonListener
- Parameters:
traceDesc
- Definition of the trace source (for common files - filename).
-
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
- Overrides:
processingFinished
in classAbstractCommonListener
- Parameters:
traceDesc
- Definition of the trace source (for common files - filename).normally
-true
if processing ends normally,false
otherwise (IOException, syntax error, etc.)
-
getRelated
public HtmlReportPage[] getRelated(java.lang.String channel, HtmlReportPage target)
Description copied from interface:ContextProvider
Получить контекстную информацию для элемента отчёта, соответствующего текущему (по порядку разбора трассы) событию.- Specified by:
getRelated
in interfaceContextProvider<HtmlReportPage>
target
- Элемент отчёта, для которого запрашивается контекст.- Returns:
- Элементы отчёта, входящие в текущее окружение. Если подходящего контекста нет - возвращается null или пустой массив.
-
-