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

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

    Constructors
    Constructor
    Description
    Add(String type, @NonNull Integer column, @NonNull String value)
    Add constructor using the Builder pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(IComputeProcessor computeProcessor)
    Accepts a compute processor for further processing.
    Creates a copy of the current compute operation.
    Returns a formatted string representation of the compute operation, indicating its type.
    void
    Updates the compute operation using the provided updater function.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Add

      public Add(String type, @NonNull @NonNull Integer column, @NonNull @NonNull String value)
      Add constructor using the Builder pattern.
      Parameters:
      type - The type of the computation task.
      column - The column index used in the computation.
      value - The value to be added.
  • 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 Add 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.