broken out into a separate function to allow testing with custom schedulerdrivers . concode_field_sep String SIDECHANNEL_AUTH_ENV_NAME concode_elem_sep Logger LOGGER concode_field_sep String getPrincipal concode_elem_sep SchedulerDriver create concode_elem_sep SchedulerDriver create concode_elem_sep boolean isSideChannelActive
SchedulerDriver function ( final Scheduler arg0 , final FrameworkInfo arg1 , final String arg2 , final Credential arg3 ) { if ( arg3 == null ) { return new MesosSchedulerDriver ( arg0 , arg1 , arg2 ) ; } else { return new MesosSchedulerDriver ( arg0 , arg1 , arg2 , arg3 ) ; } }