Class AwkExecutor

java.lang.Object
org.sentrysoftware.metricshub.engine.awk.AwkExecutor

public class AwkExecutor extends Object
Utility class for executing AWK scripts.
  • Constructor Details

    • AwkExecutor

      public AwkExecutor()
  • Method Details

    • executeAwk

      public static String executeAwk(String awkScript, String awkInput) throws AwkException
      Execute the given awkScript on the awkInput
      Parameters:
      awkScript - The AWK script to process and interpret
      awkInput - 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 the ConcurrentHashMap awkCodeMap