Package com.cobber.fta
Class Trace
- Object
-
- Trace
-
public class Trace extends Object
Class used to manage tracing for FTA.
-
-
Constructor Summary
Constructors Constructor Description Trace(String trace, AnalyzerContext context, AnalysisConfig analysisConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
recordBulk(Map<String,Long> input)
Record the bulk samples.void
recordResult(TextAnalysisResult result, int internalErrors)
Record the result of the analysis.void
recordSample(String input, long sampleCount)
Record each sample - up to the number of samples we were asked to save (traceSampleCount).
-
-
-
Constructor Detail
-
Trace
public Trace(String trace, AnalyzerContext context, AnalysisConfig analysisConfig)
-
-
Method Detail
-
recordSample
public void recordSample(String input, long sampleCount)
Record each sample - up to the number of samples we were asked to save (traceSampleCount).- Parameters:
input
- The sample to recordsampleCount
- The number of samples we have seen so far
-
recordBulk
public void recordBulk(Map<String,Long> input)
Record the bulk samples.- Parameters:
input
- The bulk samples
-
recordResult
public void recordResult(TextAnalysisResult result, int internalErrors)
Record the result of the analysis.- Parameters:
result
- The TextAnalysisResult that captures the analysis.internalErrors
- The number of internal errors detected.
-
-