Class ComputeProcessor
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.source.compute.ComputeProcessor
- All Implemented Interfaces:
IComputeProcessor
Processor for handling various compute operations in the context of source data.
This class includes methods to execute operations like ArrayTranslate, And, Add, and Awk,
among others, on the source data table.
It relies on a TelemetryManager, connectorId, MatsyaClientsExecutor, sourceKey, hostname, SourceTable, and index for its operations. It also uses a predefined map of mathematical functions for certain operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTranslations(ITranslationTable translation) Find the translation map associated with theITranslationTablein parameter.voidProcesses the Add compute operation on the source data.voidProcesses the And compute operation on the source data.voidProcesses the Append compute operation on the source data.voidprocess(ArrayTranslate arrayTranslate) Processes the ArrayTranslate compute operation on the source data.voidProcesses the Awk compute operation on the source data.voidProcesses the Convert compute operation on the source data.voidProcesses the Divide compute operation on the source data.voidprocess(DuplicateColumn duplicateColumn) This method processesDuplicateColumncomputevoidprocess(ExcludeMatchingLines excludeMatchingLines) Processes the ExcludeMatchingLines compute operation on the source data.voidThis method processesExtractcomputevoidprocess(ExtractPropertyFromWbemPath extractPropertyFromWbemPath) Processes the ExtractPropertyFromWbemPath compute operation on the source data.voidThis method processes Json2Csv computevoidprocess(KeepColumns keepColumns) Processes the KeepColumns compute operation on the source data.voidprocess(KeepOnlyMatchingLines keepOnlyMatchingLines) This method processes theKeepOnlyMatchingLinescomputevoidProcesses the Multiply compute operation on the source data.voidprocess(PerBitTranslation perBitTranslation) This method processes thePerBitTranslationcomputevoidProcesses the Prepend compute operation on the source data.voidThis method processes the replace compute operation.voidProcesses the Substring compute operation on the source data.voidProcesses the Subtract compute operation on the source data.voidProcesses the Translate compute operation on the source data.voidThis method processesXml2Csvcompute
-
Constructor Details
-
ComputeProcessor
public ComputeProcessor()
-
-
Method Details
-
process
Description copied from interface:IComputeProcessorProcesses the ArrayTranslate compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
arrayTranslate- The ArrayTranslate compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the And compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
and- The And compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Add compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
add- The Add compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Awk compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
awk- The Awk compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Convert compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
convert- The Convert compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Divide compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
divide- The Divide compute operation to be processed.
-
process
This method processesDuplicateColumncompute- Specified by:
processin interfaceIComputeProcessor- Parameters:
duplicateColumn-DuplicateColumninstance
-
process
Description copied from interface:IComputeProcessorProcesses the ExcludeMatchingLines compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
excludeMatchingLines- The ExcludeMatchingLines compute operation to be processed.
-
process
This method processesExtractcompute- Specified by:
processin interfaceIComputeProcessor- Parameters:
extract-Extractcompute
-
process
Description copied from interface:IComputeProcessorProcesses the ExtractPropertyFromWbemPath compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
extractPropertyFromWbemPath- The ExtractPropertyFromWbemPath compute operation to be processed.
-
process
This method processes Json2Csv compute- Specified by:
processin interfaceIComputeProcessor- Parameters:
json2csv-Json2Csvinstance
-
process
Description copied from interface:IComputeProcessorProcesses the KeepColumns compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
keepColumns- The KeepColumns compute operation to be processed.
-
process
This method processes theKeepOnlyMatchingLinescompute- Specified by:
processin interfaceIComputeProcessor- Parameters:
keepOnlyMatchingLines-KeepOnlyMatchingLinesinstance
-
process
Description copied from interface:IComputeProcessorProcesses the Prepend compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
prepend- The Prepend compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Multiply compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
multiply- The Multiply compute operation to be processed.
-
process
This method processes thePerBitTranslationcompute- Specified by:
processin interfaceIComputeProcessor- Parameters:
perBitTranslation-PerBitTranslationinstance
-
process
This method processes the replace compute operation.- Specified by:
processin interfaceIComputeProcessor- Parameters:
replace- The replace object containing details of the operation.
-
process
Description copied from interface:IComputeProcessorProcesses the Append compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
append- The Append compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Subtract compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
subtract- The Subtract compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Substring compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
substring- The Substring compute operation to be processed.
-
process
Description copied from interface:IComputeProcessorProcesses the Translate compute operation on the source data.- Specified by:
processin interfaceIComputeProcessor- Parameters:
translate- The Translate compute operation to be processed.
-
process
This method processesXml2Csvcompute- Specified by:
processin interfaceIComputeProcessor- Parameters:
xml2csv-Xml2Csvinstance
-
findTranslations
Find the translation map associated with theITranslationTablein parameter.- Parameters:
translation- The translation table to find translations for.- Returns:
- The translation map if found, otherwise null.
-