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)