java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.JawkSource
All Implemented Interfaces:
Serializable

public class JawkSource extends Source
Represents a source that executes an jawk script to retrieve data.
See Also:
  • Constructor Details

    • JawkSource

      public JawkSource(String type, List<Compute> computes, boolean forceSerialization, String key, ExecuteForEachEntryOf executeForEachEntryOf, String script, String input, String separators)
      Builder for creating instances of JawkSource.
      Parameters:
      type - The type of the source.
      computes - List of computations to be applied to the source.
      forceSerialization - Flag indicating whether to force serialization.
      key - The key associated with the source.
      executeForEachEntryOf - The execution context for each entry of the source.
      script - The script to execute.
      input - The input on which to execute the JAWK task.
      separators - The separators parameter for the JAWK task.
  • Method Details

    • copy

      public Source copy()
      Description copied from class: Source
      Creates a copy of the source.
      Specified by:
      copy in class Source
      Returns:
      A new Source instance that is a copy of the original.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Source
      Updates the source based on the provided updater function.
      Specified by:
      update in class Source
      Parameters:
      updater - The updater function to modify the source.
    • accept

      public SourceTable accept(ISourceProcessor sourceProcessor)
      Description copied from class: Source
      Accepts a source processor to perform processing on the source.
      Specified by:
      accept in class Source
      Parameters:
      sourceProcessor - The source processor to accept.
      Returns:
      A SourceTable representing the processed source.
    • toString

      public String toString()
      Overrides:
      toString in class Source