@ SuppressWarnings ( "checkstyle:hiddenfield" ) public void setDriverInfo ( final String identifier , final int memory , final String jobSubmissionDirectory ) { if ( identifier == null || identifier . isEmpty ( ) ) { throw new RuntimeException ( "driver id cannot be null or empty" ) ; } if ( memory <= 0 ) { throw new RuntimeException ( "driver memory cannot be negative number: " + memory ) ; } this . driverMemory = memory ; this . driverId = identifier ; if ( jobSubmissionDirectory != null && ! jobSubmissionDirectory . equals ( "empty" ) ) { this . jobSubmissionDirectory = jobSubmissionDirectory ; } else { LOG . log ( Level . FINE , "No job submission directory provided by CLR user, will use " + this . jobSubmissionDirectory ) ; } }
Set the driver memory .