Class SqlSource
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.SqlSource
- All Implemented Interfaces:
Serializable
Represents a source that performs a SQL operation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ISourceProcessor sourceProcessor) Accepts a source processor to perform processing on the source.copy()Creates a copy of the source.toString()voidupdate(UnaryOperator<String> updater) Updates the source based on the provided updater function.Methods inherited from class org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
getEntryConcatMethod, getExecuteForEachEntryOf, getSleepExecuteForEachEntryOf, isExecuteForEachEntryOf
-
Constructor Details
-
SqlSource
public SqlSource(String type, List<Compute> computes, boolean forceSerialization, String key, ExecuteForEachEntryOf executeForEachEntryOf, @NonNull @NonNull List<SqlTable> tables, @NonNull @NonNull String query) Builder for creating instances ofSqlSource.- Parameters:
type- The type of the source.computes- List of computations to be applied to the source.forceSerialization- Flag indicating whether to force serialization.key- The key associated with the source.executeForEachEntryOf- The execution context for each entry of the source.tables- The list of tables to be used in the SQL query.query- The query to execute.
-
-
Method Details