public MesosExecutorDriver(IExecutor executor) { if (executor == null) { throw new ArgumentNullException(nameof(executor)); } Executor = executor; Id = DriverRegistry.Register(this); _bridge = new ExecutorDriverBridge(); _bridge.Initialize(Id); }
public MesosSchedulerDriver(IScheduler scheduler, FrameworkInfo frameworkInfo, string masterAddress, bool implicitAcknowledgements, Credential credential) { if (scheduler == null) { throw new ArgumentNullException(nameof(scheduler)); } if (frameworkInfo == null) { throw new ArgumentNullException(nameof(frameworkInfo)); } if (masterAddress == null) { throw new ArgumentNullException(nameof(masterAddress)); } Scheduler = scheduler; Id = DriverRegistry.Register(this); _bridge = new SchedulerDriverBridge(); _bridge.Initialize(Id, frameworkInfo, masterAddress, implicitAcknowledgements, credential); }