java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractConcat, AbstractMatchingLines, Add, And, ArrayTranslate, Awk, Convert, Divide, DuplicateColumn, Extract, ExtractPropertyFromWbemPath, Json2Csv, KeepColumns, Multiply, PerBitTranslation, Replace, Substring, Subtract, Translate, Xml2Csv

public abstract class Compute extends Object implements Serializable
The abstract base class for various compute operations used in MetricsHub engine's data processing tasks. Subclasses define specific compute operations such as addition, subtraction, and more. This class provides a foundation for polymorphic deserialization and common behavior.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    accept(IComputeProcessor computeProcessor)
    Accepts a compute processor for further processing.
    abstract Compute
    Creates a copy of the current compute operation.
    Returns a formatted string representation of the compute operation, indicating its type.
    abstract 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

    • Compute

      public Compute()
  • Method Details

    • copy

      public abstract Compute copy()
      Creates a copy of the current compute operation.
      Returns:
      A new instance of the concrete compute operation.
    • update

      public abstract void update(UnaryOperator<String> updater)
      Updates the compute operation using the provided updater function.
      Parameters:
      updater - The unary operator to apply updates to the compute operation.
    • toString

      public String toString()
      Returns a formatted string representation of the compute operation, indicating its type.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the compute operation.
    • accept

      public abstract void accept(IComputeProcessor computeProcessor)
      Accepts a compute processor for further processing.
      Parameters:
      computeProcessor - The compute processor to accept.