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

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

    • Subtract

      public Subtract(String type, @NonNull @NonNull Integer column, @NonNull @NonNull String value)
      Construct a new instance of Subtract.
      Parameters:
      type - The type of the computation task.
      column - The column index used in the computation.
      value - The value to be subtracted.
  • 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 Subtract 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.