Class Source
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandLineSource,CopySource,HttpSource,IpmiSource,SnmpSource,SqlSource,StaticSource,TableJoinSource,TableUnionSource,WbemSource,WmiSource
An abstract class representing a data source in the MetricsHub engine.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract SourceTableaccept(ISourceProcessor sourceProcessor) Accepts a source processor to perform processing on the source.abstract Sourcecopy()Creates a copy of the source.Get theEntryConcatMethodvalueGet the executeForEachEntryOf string valueGet the executeForEachEntryOf sleep Integer valuebooleanWhether theExecuteForEachEntryOfis present in theSourceor nottoString()abstract voidupdate(UnaryOperator<String> updater) Updates the source based on the provided updater function.
-
Method Details
-
copy
Creates a copy of the source.- Returns:
- A new Source instance that is a copy of the original.
-
update
Updates the source based on the provided updater function.- Parameters:
updater- The updater function to modify the source.
-
accept
Accepts a source processor to perform processing on the source.- Parameters:
sourceProcessor- The source processor to accept.- Returns:
- A SourceTable representing the processed source.
-
toString
-
isExecuteForEachEntryOf
public boolean isExecuteForEachEntryOf()Whether theExecuteForEachEntryOfis present in theSourceor not- Returns:
trueifExecuteForEachEntryOfis present otherwisefalse
-
getEntryConcatMethod
Get theEntryConcatMethodvalue- Returns:
EntryConcatMethodenum value
-
getExecuteForEachEntryOf
Get the executeForEachEntryOf string value- Returns:
- String value
-
getSleepExecuteForEachEntryOf
Get the executeForEachEntryOf sleep Integer value- Returns:
- Integer value
-