示例#1
0
        public MesosExecutorDriver(IExecutor executor)
        {
            if (executor == null)
            {
                throw new ArgumentNullException(nameof(executor));
            }

            Executor = executor;
            Id       = DriverRegistry.Register(this);
            _bridge  = new ExecutorDriverBridge();
            _bridge.Initialize(Id);
        }
示例#2
0
        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);
        }