java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Awk
- All Implemented Interfaces:
Serializable
Represents an Awk computation task for monitoring.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IComputeProcessor computeProcessor) Accepts a compute processor for further processing.copy()Creates a copy of the current compute operation.toString()Returns a formatted string representation of the compute operation, indicating its type.voidupdate(UnaryOperator<String> updater) Updates the compute operation using the provided updater function.
-
Constructor Details
-
Awk
public Awk(String type, @NonNull @NonNull String script, String exclude, String keep, String separators, String selectColumns) Construct a new instance of Awk.- Parameters:
type- The type of the computation task.script- The AWK script to be executed.exclude- The exclude parameter for the AWK task.keep- The keep parameter for the AWK task.separators- The separators parameter for the AWK task.selectColumns- The selectColumns parameter for the AWK task.
-
-
Method Details
-
toString
Description copied from class:ComputeReturns a formatted string representation of the compute operation, indicating its type. -
copy
Description copied from class:ComputeCreates a copy of the current compute operation. -
update
Description copied from class:ComputeUpdates the compute operation using the provided updater function. -
accept
Description copied from class:ComputeAccepts a compute processor for further processing.
-