Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = sets.Set()
     if self.config_file is not None:
         self.configure(self.config_file)
Ejemplo n.º 2
0
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = sets.Set()
     if self.config_file is not None:
         self.configure(self.config_file)
Ejemplo n.º 3
0
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)
     self.process_groups.item_cls = BGProcessGroup
     self.diag_pids = dict()
     self.configure()
     # initiate the process before starting any threads
     thread.start_new_thread(self.update_partition_state, tuple())
Ejemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)  #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = set()
     if self.config_file is not None:
         self.configure(self.config_file)
Ejemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)
     self.process_groups.item_cls = BGProcessGroup
     self.diag_pids = dict()
     self.configure()
     # initiate the process before starting any threads
     thread.start_new_thread(self.update_partition_state, tuple())
Ejemplo n.º 6
0
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000) #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.config_file = kwargs.get("config_file", None)
     self.failed_components = set()
     if self.config_file is not None:
         self.configure(self.config_file)
Ejemplo n.º 7
0
 def __init__ (self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000) #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.node_card_cache = dict()
     self.failed_components = set()
     self.config_file = kwargs.get("config_file", get_config_option('bgsystem', 'system_def_file', None))
     if self.config_file is not None:
         self.logger.log(1, "init: loading machine configuration")
         self.configure(self.config_file)
         self.logger.log(1, "init: recomputing partition state")
         self._recompute_partition_state()
Ejemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     BGBaseSystem.__init__(self, *args, **kwargs)
     sys.setrecursionlimit(5000)  #why this magic number?
     self.process_groups.item_cls = BGSimProcessGroup
     self.node_card_cache = dict()
     self.failed_components = set()
     self.config_file = kwargs.get(
         "config_file",
         get_config_option('bgsystem', 'system_def_file', None))
     if self.config_file is not None:
         self.logger.log(1, "init: loading machine configuration")
         self.configure(self.config_file)
         self.logger.log(1, "init: recomputing partition state")
         self._recompute_partition_state()
Ejemplo n.º 9
0
    def __init__ (self, *args, **kwargs):
        BGBaseSystem.__init__(self, *args, **kwargs)
        sys.setrecursionlimit(5000)
        self.process_groups.item_cls = BGProcessGroup
        self.bp_cache = dict()
        self.node_card_cache = dict()
        self.wire_cache = dict()
        self.busted_switches = set()
        self.busted_wires = set()
        self.logger.debug("init: loading machine configuration")
        self.configure()
        self.logger.debug("init: recomputing partition state")
        self._recompute_partition_state()

        # initiate the process before starting any threads
        thread.start_new_thread(self.update_partition_state, tuple())