Class Launcher

java.lang.Object
org.microproxy.Launcher

public final class Launcher extends Object
Command-line entry point. Run with --help for options.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Starts the proxy from command-line options.
      Parameters:
      args - the command-line arguments
      Throws:
      IOException - if configuration cannot be read or the proxy cannot be started
    • statsPaths

      public static Map<String,String> statsPaths(String value)
      Parses --stats-paths and the stats_paths property: /metrics=/stats/prometheus,/health/liveness=/live.
      Parameters:
      value - the paths, comma-separated <path>=<stats path> pairs
      Returns:
      each path to the stats listener path it answers as, in order