Пример #1
0
 def __init__(self, command):
     LustreEH.__init__(self)
     self.command = command
     # Name of action to be supported by components (used with filter())
     self.fs_action = command.NAME
     self.verbose = self.command.options.verbose
     self.fs = None
Пример #2
0
 def __init__(self, command):
     LustreEH.__init__(self)
     self.command = command
     # Name of action to be supported by components (used with filter())
     self.fs_action = command.NAME
     self.verbose = self.command.options.verbose
     self.fs = None
Пример #3
0
    def __init__(self, hostname, nids, hdlr=None):
        assert isinstance(nids, list)
        self.nids = nids
        self.hostname = NodeSet(hostname)
        self.modules = dict()
        self.action_enabled = True

        self.hdlr = hdlr or EventHandler()
        self._running_actions = []
Пример #4
0
    def __init__(self, fs_name, event_handler=None):
        self.fs_name = fs_name
        self.hdlr = event_handler or EventHandler()
        self.proxy_errors = MsgTree()

        # All FS components (MGT, MDT, OST, Clients, ...)
        self.components = ComponentGroup()

        # file system MGT
        self.mgt = None

        # Local server reference
        self.local_server = None

        self.debug = False
        self.logger = self._setup_logging()
Пример #5
0
 def __init__(eh):
     EventHandler.__init__(eh)
     eh.event = None
Пример #6
0
 def __init__(self):
     EventHandler.__init__(self)
     self.evlist = dict()
     self.msglist = []
Пример #7
0
 def __init__(self):
     EventHandler.__init__(self)
     self.evlist = dict()
     self.msglist = []
Пример #8
0
 def __init__(eh):
     EventHandler.__init__(eh)
     eh.event = None