public void boot ( String [ ] args ) throws Exception { SeLionStandaloneConfiguration configuration = new SeLionStandaloneConfiguration ( ) ; JCommander commander = new JCommander ( ) ; commander . setAcceptUnknownOptions ( true ) ; commander . addObject ( configuration ) ; commander . parse ( args ) ; LauncherConfiguration lc = configuration . processLauncherConfiguration ; ConfigParser . setConfigFile ( lc . getSeLionConfig ( ) ) ; StandaloneConfiguration sc = configuration . standaloneConfiguration ; String role = sc . role . toLowerCase ( ) ; GridRole gridRole = GridRole . get ( role ) ; if ( launchers . containsKey ( gridRole ) ) { SeLionGridItemLauncher launcher = launchers . get ( gridRole ) ; launcher . setConfiguration ( args ) ; if ( launcher . versionRequested ) { System . out . println ( ident ( ) ) ; return ; } if ( launcher . helpRequested ) { launcher . printUsage ( ) ; return ; } configureLogging ( sc ) ; logEnvironment ( ) ; LOGGER . info ( ident ( ) ) ; launcher . launch ( ) ; type = launcher . type ; } else { printInfoAboutRoles ( role ) ; return ; } }
Boot the instance base on the arguments supplied