def init(self): self.intercept_info_request(DEFAULT_ARROW_IMPL) super(QuiverArrowCommand, self).init() self.operation = self.args.operation self.impl = require_impl(self.args.impl) self.id_ = self.args.id self.connection_mode = "client" self.channel_mode = "active" self.prelude = _shlex.split(self.args.prelude) if self.operation == "send": self.role = "sender" self.transfers_parse_func = _parse_send elif self.operation == "receive": self.role = "receiver" self.transfers_parse_func = _parse_receive else: raise Exception() if self.id_ is None: self.id_ = "quiver-{}-{}".format(self.role, _plano.unique_id(4)) if self.args.server: self.connection_mode = "server" if self.args.passive: self.channel_mode = "passive" self.cert = self.args.cert self.key = self.args.key self.init_url_attributes() self.init_common_test_attributes() self.init_common_tool_attributes() self.init_output_dir() if _urlparse(self.url).port is None: if self.impl.name in ("activemq-jms", "activemq-artemis-jms"): self.port = "61616" self.snapshots_file = _join(self.output_dir, "{}-snapshots.csv".format(self.role)) self.summary_file = _join(self.output_dir, "{}-summary.json".format(self.role)) self.transfers_file = _join(self.output_dir, "{}-transfers.csv".format(self.role)) self.start_time = None self.timeout_checkpoint = None self.first_send_time = None self.last_send_time = None self.first_receive_time = None self.last_receive_time = None self.message_count = None self.message_rate = None self.latency_average = None self.latency_quartiles = None self.latency_nines = None
def init(self): super(QuiverArrowCommand, self).init() self.operation = self.args.operation self.impl = self.get_arrow_impl_name(self.args.impl, self.args.impl) self.id_ = self.args.id self.connection_mode = "client" self.channel_mode = "active" self.prelude = _shlex.split(self.args.prelude) if self.operation == "send": self.role = "sender" self.transfers_parse_func = _parse_send elif self.operation == "receive": self.role = "receiver" self.transfers_parse_func = _parse_receive else: raise Exception() self.impl_file = self.get_arrow_impl_file(self.impl) if not _plano.exists(self.impl_file): raise CommandError("No implementation at '{}'", self.impl_file) if self.id_ is None: self.id_ = "quiver-{}".format(_plano.unique_id(4)) if self.args.server: self.connection_mode = "server" if self.args.passive: self.channel_mode = "passive" self.init_url_attributes() self.init_common_test_attributes() self.init_common_tool_attributes() self.init_output_dir() self.snapshots_file = _join(self.output_dir, "{}-snapshots.csv".format(self.role)) self.summary_file = _join(self.output_dir, "{}-summary.json".format(self.role)) self.transfers_file = _join(self.output_dir, "{}-transfers.csv".format(self.role)) self.start_time = None self.timeout_checkpoint = None self.first_send_time = None self.last_send_time = None self.first_receive_time = None self.last_receive_time = None self.message_count = None self.message_rate = None self.latency_average = None self.latency_quartiles = None self.latency_nines = None
def init(self): self.intercept_info_request(DEFAULT_ARROW_IMPL) super(QuiverArrowCommand, self).init() self.operation = self.args.operation self.impl = require_impl(self.args.impl) self.id_ = self.args.id self.connection_mode = "client" self.channel_mode = "active" self.prelude = _shlex.split(self.args.prelude) if self.operation == "send": self.role = "sender" self.transfers_parse_func = _parse_send elif self.operation == "receive": self.role = "receiver" self.transfers_parse_func = _parse_receive else: raise Exception() if self.id_ is None: self.id_ = "quiver-{}-{}".format(self.role, _plano.unique_id(4)) if self.args.server: self.connection_mode = "server" if self.args.passive: self.channel_mode = "passive" self.cert = self.args.cert self.key = self.args.key self.init_url_attributes() self.init_common_test_attributes() self.init_common_tool_attributes() self.init_output_dir() if _urlparse(self.url).port is None: if self.impl.name in ("activemq-jms", "activemq-artemis-jms"): self.port = "61616" # XXX Drop the flags stuff flags = list() if self.durable: flags.append("durable") self.flags = ",".join(flags) self.snapshots_file = _join(self.output_dir, "{}-snapshots.csv".format(self.role)) self.summary_file = _join(self.output_dir, "{}-summary.json".format(self.role)) self.transfers_file = _join(self.output_dir, "{}-transfers.csv".format(self.role)) self.start_time = None self.timeout_checkpoint = None self.first_send_time = None self.last_send_time = None self.first_receive_time = None self.last_receive_time = None self.message_count = None self.message_rate = None self.latency_average = None self.latency_quartiles = None self.latency_nines = None