// Reregistered is called when the Scheduler is Reregistered func (s *Scheduler) Reregistered(driver mesossched.SchedulerDriver, masterInfo *mesosproto.MasterInfo) { logrus.WithFields(logrus.Fields{ "master_id": masterInfo.GetId(), "master": masterInfo.GetHostname(), }).Debug("Framework re-registered with master.") if !s.initialised { driver.ReconcileTasks([]*mesosproto.TaskStatus{}) s.initialised = true } else { s.Reconcile(driver) } }
func (sched *Scheduler) Reregistered(driver sched.SchedulerDriver, masterInfo *mesos.MasterInfo) { glog.Infof("re-registered with master %s", masterInfo.GetId()) }
func (sched *Scheduler) Registered(driver sched.SchedulerDriver, frameworkID *mesos.FrameworkID, masterInfo *mesos.MasterInfo) { glog.Infof("registered with master %s", masterInfo.GetId()) }
func masterString(info *mesos.MasterInfo) string { return fmt.Sprintf("Id %v Ip %v Hostname %v Port %v Version %v Pid %v", info.GetId(), info.GetIp(), info.GetHostname(), info.GetPort(), info.GetVersion(), info.GetPid()) }