本文整理汇总了Python中tankcore.AbstractPlugin类的典型用法代码示例。如果您正苦于以下问题:Python AbstractPlugin类的具体用法?Python AbstractPlugin怎么用?Python AbstractPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AbstractPlugin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, core):
AbstractPlugin.__init__(self, core)
self.end = None
self.poll = None
self.prepare = None
self.start = None
self.postprocess = None
示例2: __init__
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
示例3: __init__
def __init__(self, core):
AbstractPlugin.__init__(self, core)
self.decoder = MonitoringDataDecoder()
self.mon_data = {}
def create_storage():
return {
'avg': defaultdict(list),
'quantiles': defaultdict(list),
'threads': {
'active_threads': []
},
'rps': {
'RPS': []
},
'http_codes': defaultdict(list),
'net_codes': defaultdict(list),
}
self.overall = create_storage()
self.cases = defaultdict(create_storage)
self.start_time = None
self.end_time = None
self.show_graph = None
self.template = None
示例4: __init__
def __init__(self, core):
AbstractPlugin.__init__(self, core)
self.cause_criteria = None
self.criterias = []
self.custom_criterias = []
self.counting = []
self.criteria_str = ''
示例5: __init__
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)
示例6: __init__
def __init__(self, core):
AbstractPlugin.__init__(self, core)
AbstractInfoWidget.__init__(self)
lines = open(os.path.dirname(__file__) + '/tips.txt').readlines()
line = random.choice(lines)
self.section = line[:line.index(':')]
self.tip = line[line.index(':') + 1:].strip()
self.disable = 0
示例7: __init__
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()
示例8: __init__
def __init__(self, core):
'''
Constructor
'''
AbstractPlugin.__init__(self, core)
self.loadosophia = LoadosophiaClient()
self.loadosophia.results_url = self.REDIR_TO
self.project_key = None
示例9: __init__
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
示例10: __init__
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
示例11: __init__
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.interval = 60
self.quantiles_data = []
self.redirect = ''
示例12: __init__
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
示例13: __init__
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
示例14: __init__
def __init__(self, core):
AbstractPlugin.__init__(self, core)
self.jobno = None
self.default_target = None
self.config = None
self.process = None
self.monitoring = MonitoringCollector()
self.die_on_fail = True
self.data_file = None
self.mon_saver = None
示例15: __init__
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