public static void main(String[] args) {
    if (args.length != 5) {
      System.err.println(String.format("Wrong number of arguments. %s", USAGE));
      System.exit(1);
    }

    String action = args[0];
    String hostsFile = args[1];
    String servicesFile = args[2];
    String outputFile = args[3];
    String errorFile = args[4];

    int exitCode = run(action, hostsFile, servicesFile, outputFile, errorFile);
    System.exit(exitCode);
  }
Entry point for calling this class through its jar.
@param args
ambari-serviceadvisor/src/main/java/org/apache/ambari/serviceadvisor/ServiceAdvisor.java