def __init__(self, args=None): self.args = args self.logger = logger.MesosManagerLogger(args) self.q = Queue() self.vnc = vnc_mesos.VncMesos(args=self.args, logger=self.logger, q=self.q)
def __init__(self, args=None): self.args = args self.queue = Queue() self.logger = common.logger.MesosManagerLogger(args) self.vnc = vnc_mesos.VncMesos(args=self.args, logger=self.logger, queue=self.queue) self.mserver = mserver.MesosServer(args=self.args, logger=self.logger, queue=self.queue)
def __init__(self, args=None, mesos_api_connected=False, queue=None): self.args = args if queue: self.queue = queue else: self.queue = Queue() self.logger = logger.MesosManagerLogger(args) self.vnc = vnc_mesos.VncMesos(args=self.args, logger=self.logger, queue=self.queue) self.mserver = mserver.MesosServer(args=self.args, logger=self.logger, queue=self.queue)
def __init__(self, args=None, mesos_api_connected=False, queue=None): self.greenlets = [] self.args = args if queue: self.queue = queue else: self.queue = Queue() #TODO: Sync DB with current state using mesos agent api self.logger = logger.MesosManagerLogger(args) self.cni_server = cni_server.MesosCniServer(args=self.args, logger=self.logger, queue=self.queue) self.vnc = vnc_mesos.VncMesos(self.args, self.logger, self.queue)
def run_mesos_manager(self): self.logger.info("Starting mesos manager.") self.vnc = vnc_mesos.VncMesos(self.args, self.logger, self.queue)