def __init__(self, ctrl_be): ChangeCounter.__init__(self) self.sections = {} self.ctrl_be = ctrl_be self.sections['instruments'] = PSInstruments(self.ctrl_be) self.sections['consumers'] = PSConsumers(self.ctrl_be) self.sections['timers'] = self.timers = PSTimers(self.ctrl_be) # setup_actors and setup_objects was available up to 5.6 if self.ctrl_be.target_version.is_supported_mysql_version_at_least( 5, 6, 0): self.sections['actors'] = PSActors(self.ctrl_be) config_enable = True if self.ctrl_be.target_version.is_supported_mysql_version_at_least( 5, 6, 3) else False self.sections['objects'] = PSObjects(self.ctrl_be, config_enable) self.sections['threads'] = PSThreads(self.ctrl_be) # PS Status variables self.variables = PSVariables(self.ctrl_be) # Tracks changes on elements for element in self.sections.values(): self.count_changes_on(element) self.timer_types = []
def __init__(self, ctrl_be): ChangeCounter.__init__(self) self.sections = {} self.ctrl_be = ctrl_be self.sections['instruments'] = PSInstruments(self.ctrl_be) self.sections['consumers'] = PSConsumers(self.ctrl_be) self.sections['timers'] = self.timers = PSTimers(self.ctrl_be) # setup_actors and setup_objects was available up to 5.6 if self.ctrl_be.target_version.is_supported_mysql_version_at_least(5, 6, 0): self.sections['actors'] = PSActors(self.ctrl_be) config_enable = True if self.ctrl_be.target_version.is_supported_mysql_version_at_least(5, 6, 3) else False self.sections['objects'] = PSObjects(self.ctrl_be, config_enable) self.sections['threads'] = PSThreads(self.ctrl_be) # PS Status variables self.variables = PSVariables(self.ctrl_be) # Tracks changes on elements for element in self.sections.values(): self.count_changes_on(element) self.timer_types = []
def __init__(self, *args): """ The consumers class receives the next arguments: - ctrl_be """ dict.__init__(self) ChangeCounter.__init__(self) self.ctrl_be = args[0] self.consumers = {}
def __init__(self, ctrl_be): ChangeCounter.__init__(self) self.ctrl_be = ctrl_be self.instruments = PSInstrumentGroup(None) self.count_changes_on(self.instruments)