public static void main(String[] args) {

    if (args.length >= 2) {

      if (args[0].equals(EXTRACT_COMMAND)) {

        String archivePath = args[1];
        ViewModule viewModule = new ViewModule();

        try {
          if (extractViewArchive(archivePath, viewModule, true)) {
            System.exit(0);
          }
        } catch (Exception e) {
          String msg = "Caught exception extracting view archive " + archivePath + ".";
          LOG.error(msg, e);
          System.exit(2);
        }
      }
    }
    System.exit(1);
  }
Registry main method.

@param args the command line arguments
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java