hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/StorageContainerManager.java
public static void main(String[] argv) throws IOException {
    if (DFSUtil.parseHelpArgument(argv, USAGE,
        System.out, true)) {
      System.exit(0);
    }
    try {
      OzoneConfiguration conf = new OzoneConfiguration();
      GenericOptionsParser hParser = new GenericOptionsParser(conf, argv);
      if (!hParser.isParseSuccessful()) {
        System.err.println("USAGE: " + USAGE + "\n");
        hParser.printGenericCommandUsage(System.err);
        System.exit(1);
      }
      StringUtils.startupShutdownMessage(StorageContainerManager.class,
          argv, LOG);
      StorageContainerManager scm = createSCM(hParser.getRemainingArgs(), conf);
      if (scm != null) {
        scm.start();
        scm.join();
      }
    } catch (Throwable t) {
      LOG.error("Failed to start the StorageContainerManager.", t);
      terminate(1, t);
    }
  }
/**
   * Main entry point for starting StorageContainerManager.
   *
   * @param argv arguments
   * @throws IOException if startup fails due to I/O error
   */
Main entry point for starting StorageContainerManager.
@param argv arguments
@throws IOException if startup fails due to I/O error
Main entry point for starting StorageContainerManager . @param argv arguments @throws IOException if startup fails due to I / O error
public static void main(String[] argv) throws IOException {
    if (DFSUtil.parseHelpArgument(argv, USAGE,
        System.out, true)) {
      System.exit(0);
    }
    try {
      OzoneConfiguration conf = new OzoneConfiguration();
      GenericOptionsParser hParser = new GenericOptionsParser(conf, argv);
      if (!hParser.isParseSuccessful()) {
        System.err.println("USAGE: " + USAGE + "\n");
        hParser.printGenericCommandUsage(System.err);
        System.exit(1);
      }
      StringUtils.startupShutdownMessage(StorageContainerManager.class,
          argv, LOG);
      StorageContainerManager scm = createSCM(hParser.getRemainingArgs(), conf);
      if (scm != null) {
        scm.start();
        scm.join();
      }
    } catch (Throwable t) {
      LOG.error("Failed to start the StorageContainerManager.", t);
      terminate(1, t);
    }
  }
public static void main ( String [ ] argv ) throws IOException { if ( DFSUtil . parseHelpArgument ( argv , USAGE , System . out , true ) ) { System . exit ( 0 ) ; } try { OzoneConfiguration conf = new OzoneConfiguration ( ) ; GenericOptionsParser hParser = new GenericOptionsParser ( conf , argv ) ; if ( ! hParser . isParseSuccessful ( ) ) { System . err . println ( "USAGE: " + USAGE + "\n" ) ; hParser . printGenericCommandUsage ( System . err ) ; System . exit ( 1 ) ; } StringUtils . startupShutdownMessage ( StorageContainerManager . class , argv , LOG ) ; StorageContainerManager scm = createSCM ( hParser . getRemainingArgs ( ) , conf ) ; if ( scm != null ) { scm . start ( ) ; scm . join ( ) ; } } catch ( Throwable t ) { LOG . error ( "Failed to start the StorageContainerManager." , t ) ; terminate ( 1 , t ) ; } }
Main entry point for starting StorageContainerManager.
Main entry point for starting StorageContainerManager .