private List < String > getCommandList ( final JobSubmissionEvent jobSubmissionEvent ) { return new JavaLaunchCommandBuilder ( ) . setJavaPath ( "%JAVA_HOME%/bin/java" ) . setConfigurationFilePaths ( Collections . singletonList ( this . filenames . getDriverConfigurationPath ( ) ) ) . setClassPath ( this . classpath . getDriverClasspath ( ) ) . setMemory ( jobSubmissionEvent . getDriverMemory ( ) . get ( ) ) . setStandardErr ( ApplicationConstants . LOG_DIR_EXPANSION_VAR + "/" + this . filenames . getDriverStderrFileName ( ) ) . setStandardOut ( ApplicationConstants . LOG_DIR_EXPANSION_VAR + "/" + this . filenames . getDriverStdoutFileName ( ) ) . build ( ) ; }
Assembles the command to execute the Driver in list form .