Esempio n. 1
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);
        }
Esempio n. 2
0
 public MesosSchedulerDriver(IScheduler scheduler, FrameworkInfo frameworkInfo, string masterAddress, bool implicitAcknowledgements)
     : this(scheduler, frameworkInfo, masterAddress, implicitAcknowledgements, null)
 {
 }
Esempio n. 3
0
 public MesosSchedulerDriver(IScheduler scheduler, FrameworkInfo frameworkInfo, string masterAddress, Credential credential)
     : this(scheduler, frameworkInfo, masterAddress, true, credential)
 {
 }
Esempio n. 4
0
 public MesosSchedulerDriver(IScheduler scheduler, FrameworkInfo frameworkInfo, string masterAddress)
     : this(scheduler, frameworkInfo, masterAddress, true, null)
 {
 }
Esempio n. 5
0
 public override void Registered(IExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo)
 {
     _outputDir = Encoding.UTF8.GetString (executorInfo.data);
     Console.WriteLine ($"Registered executor on host '{slaveInfo.hostname}'. Output dir is '{_outputDir}'.");
 }
Esempio n. 6
0
 public virtual void Registered(IExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo)
 {
 }
Esempio n. 7
0
 public override void Registered(IExecutorDriver driver, ExecutorInfo executorInfo, FrameworkInfo frameworkInfo, SlaveInfo slaveInfo)
 {
     Console.WriteLine($"Registered executor on '{slaveInfo.hostname}'.");
 }