java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Awk
All Implemented Interfaces:
Serializable

public class Awk extends Compute
Represents an Awk computation task for monitoring.
See Also:
  • Constructor Details

    • Awk

      public Awk(String type, @NonNull @NonNull String script, String exclude, String keep, String separators, String selectColumns)
      Construct a new instance of Awk.
      Parameters:
      type - The type of the computation task.
      script - The AWK script to be executed.
      exclude - The exclude parameter for the AWK task.
      keep - The keep parameter for the AWK task.
      separators - The separators parameter for the AWK task.
      selectColumns - The selectColumns parameter for the AWK task.
  • Method Details

    • toString

      public String toString()
      Description copied from class: Compute
      Returns a formatted string representation of the compute operation, indicating its type.
      Overrides:
      toString in class Compute
      Returns:
      A string representation of the compute operation.
    • copy

      public Awk copy()
      Description copied from class: Compute
      Creates a copy of the current compute operation.
      Specified by:
      copy in class Compute
      Returns:
      A new instance of the concrete compute operation.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Compute
      Updates the compute operation using the provided updater function.
      Specified by:
      update in class Compute
      Parameters:
      updater - The unary operator to apply updates to the compute operation.
    • accept

      public void accept(IComputeProcessor computeProcessor)
      Description copied from class: Compute
      Accepts a compute processor for further processing.
      Specified by:
      accept in class Compute
      Parameters:
      computeProcessor - The compute processor to accept.