Class AwkExecutor
java.lang.Object
org.sentrysoftware.metricshub.engine.awk.AwkExecutor
Utility class for executing AWK scripts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexecuteAwk(String awkScript, String awkInput) Execute the givenawkScripton theawkInputstatic voidClear theConcurrentHashMapawkCodeMap
-
Constructor Details
-
AwkExecutor
public AwkExecutor()
-
-
Method Details
-
executeAwk
Execute the givenawkScripton theawkInput- Parameters:
awkScript- The AWK script to process and interpretawkInput- The input to modify via the AWK script- Returns:
- The result of the AWK script
- Throws:
AwkException- if execution fails
-
resetCache
public static void resetCache()Clear theConcurrentHashMapawkCodeMap
-