def __init__(self, core): AbstractPlugin.__init__(self, core) self.cause_criteria = None self.criterias = [] self.custom_criterias = [] self.counting = [] self.criteria_str = ''
def __init__(self, core): ''' Constructor ''' AbstractPlugin.__init__(self, core) self.interval = "10s" self.disk_limit = 2048 # 2 GB self.mem_limit = 512 # 0.5 GB self.last_check = 0
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) module_path = self.get_option("module_path") module_name = self.get_option("module_name") sys.path.append(module_path) self.module = __import__(module_name)
def __init__(self, core): AbstractPlugin.__init__(self, core) self.end = None self.poll = None self.prepare = None self.start = None self.postprocess = None
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) module_path = self.get_option("module_path", "") module_name = self.get_option("module_name") if module_path: sys.path.append(module_path) self.module = __import__(module_name)
def __init__(self, core): AbstractPlugin.__init__(self, core) Thread.__init__(self) self.daemon = True # Thread auto-shutdown self.port = 8080 self.last_sec = None self.server = None self.cache = DataCacher()
def __init__(self, core): AbstractPlugin.__init__(self, core) self.out_file = None self.process = None self.concurrency = 0 self.options = None self.url = None self.requests = None
def __init__(self, core): AbstractPlugin.__init__(self, core) AbstractInfoWidget.__init__(self) lines = resource_stream(__name__, "config/tips.txt").readlines() line = random.choice(lines) self.section = line[:line.index(':')] self.tip = line[line.index(':') + 1:].strip() self.disable = 0
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) module_path = self.get_option("module_path", "") module_name = self.get_option("module_name") if module_path: sys.path.append(module_path) self.module = __import__(module_name) self.scenarios = self.module.SCENARIOS
def __init__(self, core): AbstractPlugin.__init__(self, core) AggregateResultListener.__init__(self) self.cause_criteria = None self._criterias = {} self.custom_criterias = [] self.counting = [] self.criteria_str = '' self._stop_report_path = ''
def __init__(self, core): """ Constructor """ AbstractPlugin.__init__(self, core) self.loadosophia = LoadosophiaClient() self.loadosophia.results_url = None self.project_key = None self.color = None self.title = None self.online_buffer = [] self.online_initiated = False self.online_enabled = False
def __init__(self, core): AbstractPlugin.__init__(self, core) self.screen = None self.render_exception = None self.console_markup = None self.remote_translator = None self.info_panel_width = '33' self.short_only = 0 # these three provide non-blocking console output self.__console_view = None self.__writer_thread = None self.__writer_event = None
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) module_path = self.get_option("module_path", "").split() module_name = self.get_option("module_name") #imp allows to avoid custom module caching fp, pathname, description = imp.find_module(module_name, module_path) try: self.module = imp.load_module(module_name, fp, pathname, description) finally: if fp: fp.close()
def __init__(self, core): AbstractPlugin.__init__(self, core) self.jmeter_process = None self.args = None self.original_jmx = None self.jtl_file = None self.jmx = None self.user_args = None self.jmeter_path = None self.jmeter_log = None self.start_time = time.time() self.jmeter_buffer_size = None self.use_argentum = None
def __init__(self, core): AbstractPlugin.__init__(self, core) self.log.info("yatank_Hipchat init ...") self.options = { 'server': ('', True), 'token': ('', True), 'rooms': ([], False), 'users': ([], False), 'domain': ('', True) } self.hipchat = None self.collector = None self.end_time = None self.data_plugin = None
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) self.gun_type = None self.start_time = time.time() self.stepper_wrapper = StepperWrapper(self.core, BFGPlugin.SECTION) self.log.info("Initialized BFG") self.gun_classes = { 'log': LogGun, 'sql': SqlGun, 'custom': CustomGun, 'http': HttpGun, }
def __init__(self, core): AbstractPlugin.__init__(self, core) self.process = None self.second_data_listeners = [] self.preproc_out_offset = 0 self.buffer = [] self.second_data_draft = [] self.preproc_out_filename = None self.cumulative_data = SecondAggregateDataTotalItem() self.reader = None self.time_periods = [tankcore.expand_to_milliseconds(x) for x in self.default_time_periods.split(' ')] self.last_sample_time = 0 self.precise_cumulative = 1
def __init__(self, core): AbstractPlugin.__init__(self, core) self.sender = '' self.recievers = '' self.templates_dir_path = '' self.data_plugin = None self.stage_data = None self.templ_base_names = [ 'header_template', 'header_template_file_name', 'message_template', 'message_template_file_name', 'html_message_template', 'html_message_template_file_name' ] self.save_base_names = [ 'save_header_file', 'save_message_file', 'save_html_message_file' ]
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) self.gun_type = None self.start_time = time.time() self.stepper_wrapper = StepperWrapper(self.core, BFGPlugin.SECTION) self.log.info("Initialized BFG") self.gun_classes = { 'log': LogGun, 'sql': SqlGun, 'custom': CustomGun, 'http': HttpGun, 'scenario': ScenarioGun, }
def __init__(self, core): AbstractPlugin.__init__(self, core) self.process = None self.second_data_listeners = [] self.preproc_out_offset = 0 self.buffer = [] self.second_data_draft = [] self.preproc_out_filename = None self.cumulative_data = SecondAggregateDataTotalItem() self.reader = None self.time_periods = [ tankcore.expand_to_milliseconds(x) for x in self.default_time_periods.split(' ') ] self.last_sample_time = 0 self.precise_cumulative = 1
def __init__(self, core): AbstractPlugin.__init__(self, core) self.config = None self.process = None self.predefined_phout = None self.phout_import_mode = False self.did_phout_import_try = False self.phantom_path = None self.eta_file = None self.processed_ammo_count = 0 self.phantom_start_time = time.time() self.buffered_seconds = "2" self.phantom = None self.cached_info = None self.phantom_stderr = None self.enum_ammo = False
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) param = self.get_option("param", '15') self.log.info('Initialized log gun for BFG with param = %s' % param)
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) self.base_address = self.get_option("base_address")
def __init__(self, core): AbstractPlugin.__init__(self, core) self.count = 0
def __init__(self, core): AbstractPlugin.__init__(self, core) self.ok_codes = [] self.fail_code = 10
def __init__(self, core): AbstractPlugin.__init__(self, core) self.graphite_client = None
def __init__(self, core): AbstractPlugin.__init__(self, core) self.buffered_seconds=2 self.process=None self.process_stderr = None self.process_start_time = None
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) self.engine = create_engine(self.get_option("db"))
def __init__(self, core): AbstractPlugin.__init__(self, core) self.buffered_seconds = 2 self.process = None self.process_stderr = None self.process_start_time = None
def __init__(self, core): AbstractPlugin.__init__(self, core) self._output_file_path = None self.rc = -1
def __init__(self, core): AbstractPlugin.__init__(self, core) AggregateResultListener.__init__(self) self.client = None self.decoder = None