public Process runWithStartupDelay ( Class < ? > klass , String [ ] javaArguments , String [ ] processArguments , long processStartupTime ) throws IOException , InterruptedException , TimeoutException { Process process = runWithConfirmation ( "" , klass , javaArguments , processArguments ) ; if ( processStartupTime > 0 ) { Thread . sleep ( processStartupTime ) ; } return process ; }
Runs process with arguments based on a specified class in a separate VM . Waits processStartupTime before returns the created process to a caller .