public SchedulerDriver createDriver ( Scheduler scheduler , boolean implicitAcknowledgements ) { MesosSchedulerDriver schedulerDriver ; if ( this . credential ( ) . isDefined ( ) ) { schedulerDriver = new MesosSchedulerDriver ( scheduler , frameworkInfo . build ( ) , this . masterUrl ( ) , implicitAcknowledgements , this . credential ( ) . get ( ) . build ( ) ) ; } else { schedulerDriver = new MesosSchedulerDriver ( scheduler , frameworkInfo . build ( ) , this . masterUrl ( ) , implicitAcknowledgements ) ; } return schedulerDriver ; }
Create the Mesos scheduler driver based on this configuration .