Class SnmpTableSource
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.SnmpSource
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.SnmpTableSource
- All Implemented Interfaces:
Serializable
Represents a source task for SNMP-based tables.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSnmpTableSource(String type, List<Compute> computes, boolean forceSerialization, String oid, @NonNull String selectColumns, String key, ExecuteForEachEntryOf executeForEachEntryOf) Constructs a newSnmpTableSourceinstance with the provided attributes. -
Method Summary
Modifier and TypeMethodDescriptionaccept(ISourceProcessor sourceProcessor) Accepts a source processor to perform processing on the source.copy()Copy the current instancetoString()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
-
SnmpTableSource
public SnmpTableSource(String type, List<Compute> computes, boolean forceSerialization, String oid, @NonNull @NonNull String selectColumns, String key, ExecuteForEachEntryOf executeForEachEntryOf) Constructs a newSnmpTableSourceinstance 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 forcedoid- the SNMP OID to retrieve dataselectColumns- the columns to select from the SNMP tablekey- the key associated with the sourceexecuteForEachEntryOf- the execute-for-each-entry-of information
-
-
Method Details
-
copy
Copy the current instance- Specified by:
copyin classSource- Returns:
- new
SnmpTableSourceinstance
-
toString
- Overrides:
toStringin classSnmpSource
-
update
Description copied from class:SourceUpdates the source based on the provided updater function.- Overrides:
updatein classSnmpSource- Parameters:
updater- The updater function to modify the source.
-
accept
Description copied from class:SourceAccepts a source processor to perform processing on the source.
-