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

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

    Constructors
    Constructor
    Description
    And(String type, @NonNull Integer column, @NonNull String value)
    Construct a new instance of And.
  • 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

    • And

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