func (self *ResMan) OnReregister(driver *mesos.SchedulerDriver, mi mesos.MasterInfo) { log.Warningf("OnReregisterd master:%v:%v", Inet_itoa(mi.GetIp()), mi.GetPort()) cmd := &cmdMesosMasterInfoUpdate{masterInfo: mi, driver: driver} self.cmdCh <- cmd }
func (self *ResMan) OnRegister(driver *mesos.SchedulerDriver, fid mesos.FrameworkID, mi mesos.MasterInfo) { log.Warningf("OnRegisterd master:%v:%v, frameworkId:%v", Inet_itoa(mi.GetIp()), mi.GetPort(), fid.GetValue()) cmd := &cmdMesosMasterInfoUpdate{masterInfo: mi, frameworkId: fid, driver: driver} self.cmdCh <- cmd }