protected ReturnCode handleActions ( BootstrapConfig bootProps , LaunchArguments launchArgs ) { ReturnCode rc = launchArgs . getRc ( ) ; switch ( rc ) { case OK : rc = new KernelBootstrap ( bootProps ) . go ( ) ; break ; case CREATE_ACTION : // Use initialized bootstrap configuration to create the server lock. // This ensures the server and nested workarea directory exist and are writable ServerLock . createServerLock ( bootProps ) ; boolean generatePass = launchArgs . getOption ( "no-password" ) == null ; rc = bootProps . generateServerEnv ( generatePass ) ; break ; case MESSAGE_ACTION : rc = showMessage ( launchArgs ) ; break ; case HELP_ACTION : rc = showHelp ( launchArgs ) ; break ; case VERSION_ACTION : KernelBootstrap . showVersion ( bootProps ) ; rc = ReturnCode . OK ; break ; case STOP_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . stop ( ) ; break ; case STATUS_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . status ( false ) ; break ; case STARTING_STATUS_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . status ( true ) ; break ; case START_STATUS_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . startStatus ( ) ; break ; case PACKAGE_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . PackageCommand ( bootProps , launchArgs ) . doPackage ( ) ; break ; case PACKAGE_WLP_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . PackageCommand ( bootProps , launchArgs ) . doPackageRuntimeOnly ( ) ; break ; case DUMP_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . dump ( ) ; break ; case JAVADUMP_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . dumpJava ( ) ; break ; case PAUSE_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . pause ( ) ; break ; case RESUME_ACTION : rc = new com . ibm . ws . kernel . boot . internal . commands . ProcessControlHelper ( bootProps , launchArgs ) . resume ( ) ; break ; case LIST_ACTION : rc = new ListServerHelper ( bootProps , launchArgs ) . listServers ( ) ; break ; default : showHelp ( launchArgs ) ; rc = ReturnCode . BAD_ARGUMENT ; } return rc ; }
Handle the process action .