Class Trace


  • public class Trace
    extends Object
    Class used to manage tracing for FTA.
    • 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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 record
        sampleCount - 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.