protected void process ( String command ) { try { Method method = this . getClass ( ) . getMethod ( command ) ; logger . info ( "Try to delegate '{}' to launcher directly." , command ) ; method . invoke ( this ) ; logger . info ( "Invoke '{}' to launcher directly successfully. \r\n" , command ) ; } catch ( NoSuchMethodException e ) { logger . warn ( "unrecognized command: '{}'" , command ) ; } catch ( Exception e ) { logger . warn ( "Failed to execute: '{}'" , command ) ; } }
Process user specified command