def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.dialog = Dialog(self) self.has_run = False self.shares = {} self.wm = None Config.read()
def order_stop(self): AbstractRole.order_stop(self) for session in self.sessions.values(): self.manager.session_switch_status( session, Session.SESSION_STATUS_WAIT_DESTROY) self.spool_action("destroy", session.id)
def force_stop(self): AbstractRole.force_stop(self) for thread in self.threads: thread.terminate() for thread in self.threads: thread.join()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.server = None self.ssl_ctx = None self.processes = {} self.kill_mutex = threading.Lock()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.server = None self.ssl_ctx = None self.processes = {} self.kill_mutex = threading.Lock() self.sessions_repo = SessionsRepository.initialize() self.apps_repo = ApplicationsRepository.initialize()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.virt_co = libvirt.open(Config.libvirt_uri) self.has_run = False self.queue = Queue.Queue() self.pool = Pool(Config.ulteo_pool_name,self.virt_co) self.virtual_machine = {} self.network = Network(Config.network_name, self.virt_co) self.webserver = None
def force_stop(self): AbstractRole.force_stop(self) for vm in self.virtual_machine : vm = self.virtual_machine[vm] if vm.getStatus() == "RUNNING" : vm.shutdown() self.webserver.server_close()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) Logger.info("Guest role::__init__") self.loop = True self.url = None self.host = Conf.hypervisor self.port = "1112" self.session = None self.session_spooler = multiprocessing.Queue() self.session_sync = multiprocessing.Queue() self.manager = Manager(self.main_instance.smRequestManager) self.session_manager = SessionManagement(self.manager, self.session_spooler, self.session_sync) self.current_session_status = None
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.dialog = Dialog(self) Logger._instance.close() self.sessions = {} self.locked_sessions = [] self.sessions_spooler = MPQueue.Queue() self.sessions_spooler2 = MPQueue.Queue() self.sessions_sync = MPQueue.Queue() self.logging_queue = MPQueue.Queue() self.manager = Manager(self.main_instance.smRequestManager) self.threads = [] self.applications = {} self.applications_id_SM = {} self.applications_mutex = threading.Lock() self.has_run = False self.static_apps = RolePlatform.ApplicationsStatic(self.main_instance.smRequestManager) self.static_apps_must_synced = False self.static_apps_lock = threading.Lock()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.sessions = {} self.locked_sessions = [] self.sessions_spooler = MPQueue.Queue() self.sessions_spooler2 = MPQueue.Queue() self.sessions_sync = MPQueue.Queue() self.logging_queue = MPQueue.Queue() self.manager = Manager(self.main_instance.smRequestManager) self.threads = [] self.applications = {} self.applications_id_SM = {} self.applications_mutex = threading.Lock() self.static_apps = ApplicationsStatic(self.main_instance.smRequestManager) self.static_apps_must_synced = False self.static_apps_lock = threading.Lock() self.scripts = Scripts(self.main_instance.smRequestManager) self.scripts_lock = threading.Lock() self.scripts_must_synced = False
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.sessions = {} self.locked_sessions = [] self.sessions_spooler = MPQueue.Queue() self.sessions_spooler2 = MPQueue.Queue() self.sessions_sync = MPQueue.Queue() self.logging_queue = MPQueue.Queue() self.manager = Manager(self.main_instance.smRequestManager) self.threads = [] self.applications = {} self.applications_id_SM = {} self.applications_mutex = threading.Lock() self.static_apps = ApplicationsStatic( self.main_instance.smRequestManager) self.static_apps_must_synced = False self.static_apps_lock = threading.Lock() self.scripts = Scripts(self.main_instance.smRequestManager) self.scripts_lock = threading.Lock() self.scripts_must_synced = False
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.dialog = Dialog(self) Logger._instance.close() self.sessions = {} self.locked_sessions = [] self.sessions_spooler = MPQueue.Queue() self.sessions_spooler2 = MPQueue.Queue() self.sessions_sync = MPQueue.Queue() self.logging_queue = MPQueue.Queue() self.manager = Manager(self.main_instance.smRequestManager) self.threads = [] self.applications = {} self.applications_id_SM = {} self.applications_mutex = threading.Lock() self.has_run = False self.static_apps = RolePlatform.ApplicationsStatic( self.main_instance.smRequestManager) self.static_apps_must_synced = False self.static_apps_lock = threading.Lock()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) Logger.info("Dummy role::__init__")
def order_stop(self): AbstractRole.order_stop(self) self.session_manager.looping = False self.loop = False
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.shares = {} self.FSBackend = FSBackend()
def force_stop(self): AbstractRole.force_stop(self) self.server.shutdown() for pid in list(self.processes): self.kill_process(pid)
def order_stop(self): AbstractRole.order_stop(self) self.force_stop()
def __init__(self, main_instance): AbstractRole.__init__(self, main_instance) self.dialog = Dialog(self) self.has_run = False self.shares = {} self.wm = None
def order_stop(self): AbstractRole.order_stop(self) for session in self.sessions.values(): self.manager.session_switch_status(session, Session.SESSION_STATUS_WAIT_DESTROY) self.spool_action("destroy", session.id)