Class Compute
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
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 -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaccept(IComputeProcessor computeProcessor) Accepts a compute processor for further processing.abstract Computecopy()Creates a copy of the current compute operation.toString()Returns a formatted string representation of the compute operation, indicating its type.abstract voidupdate(UnaryOperator<String> updater) Updates the compute operation using the provided updater function.
-
Constructor Details
-
Compute
public Compute()
-
-
Method Details
-
copy
Creates a copy of the current compute operation.- Returns:
- A new instance of the concrete compute operation.
-
update
Updates the compute operation using the provided updater function.- Parameters:
updater- The unary operator to apply updates to the compute operation.
-
toString
Returns a formatted string representation of the compute operation, indicating its type. -
accept
Accepts a compute processor for further processing.- Parameters:
computeProcessor- The compute processor to accept.
-