Class StaticSource
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.StaticSource
- All Implemented Interfaces:
Serializable
Represents a source task with a static value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStaticSource(String type, List<Compute> computes, boolean forceSerialization, @NonNull String value, String key, ExecuteForEachEntryOf executeForEachEntryOf) Constructs a newStaticSourceinstance with the provided attributes. -
Method Summary
Modifier and TypeMethodDescriptionaccept(ISourceProcessor sourceProcessor) Accepts a source processor to perform processing on the source.copy()Creates a new instance by copying the current instance.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
-
StaticSource
public StaticSource(String type, List<Compute> computes, boolean forceSerialization, @NonNull @NonNull String value, String key, ExecuteForEachEntryOf executeForEachEntryOf) Constructs a newStaticSourceinstance with the provided attributes.- Parameters:
type- the type of the sourcecomputes- the list of compute operations to be appliedforceSerialization- flag indicating whether serialization should be forcedvalue- the static value associated with the sourcekey- the key associated with the sourceexecuteForEachEntryOf- the execute-for-each-entry-of information
-
-
Method Details