@Option(longName = "header", acceptMultipleValues = true) @Description("add an header formatted as header_name:header_value") public void setHeaders(List<String> headers) { for (String header : headers) { Matcher matcher = HEADER_PATTERN.matcher(header); if (!matcher.matches()) { throw new IllegalArgumentException("Invalid header value, use: --header foo:bar"); } options.addHeader(matcher.group(1), matcher.group(2)); } }
@Argument(index = 0, argName = "name") @Description("the verticle name") public void setName(String name) { this.name = name; }
@Argument(index = 1, argName = "options", required = false) @Description("the verticle deployment options as JSON string") public void setOptions(String options) { this.options = options; }
@Argument(index = 0, argName = "map", required = false) @Description("the local shared map name") public void setMap(String map) { this.map = map; }
@Argument(index = 1, argName = "key", required = false) @Description("the key to put") public void setKey(String key) { this.key = key; }
@Argument(index = 2, argName = "value", required = false) @Description("the value to put") public void setValue(String value) { this.value = value; }
@Description("the number of seconds to wait") @Argument(index = 0, argName = "seconds") public void setSeconds(String seconds) { this.seconds = seconds; }
@Argument(index = 0, argName = "address") @Description("the bus address destination") public void setAddress(String address) { this.address = address; }
@Argument(index = 1, argName = "body", required = false) @Description("the message body") public void setBody(String body) { this.body = body; }
@Option(longName = "verbose", flag = true) @Description("verbose output") public void setVerbose(boolean verbose) { this.verbose = verbose; }
@Option(longName = "type") @Description("the object type") public void setType(ObjectType type) { this.type = type; }
@Argument(index = 0, argName = "map", required = false) @Description("the name of the map to get from") public void setMap(String map) { this.map = map; }
@Argument(index = 1, argName = "keys") @Description("the keys to get") public void setKeys(List<String> keys) { this.keys = keys; }
@Option(longName = "timeout") @Description("the send timeout") public void setTimeout(long timeout) { options.setSendTimeout(timeout); }
@Option(longName = "reply", flag = true) @Description("wait for a reply and print it on the console") public void setReply(boolean reply) { this.reply = reply; }
@Argument(index = 0, argName = "dir", required = false) @Description("the new working dir") public void setDir(String dir) { this.dir = dir; }
@Argument(index = 0, argName = "id") @Description("the verticle id") public void setId(String id) { this.id = id; }
@Option(shortName = "l", flag = true) @Description("list in long format") public void setEll(boolean ell) { this.ell = ell; }
@Argument(index = 0, argName = "file", required = false) @Description("the file to list") @DefaultValue(".") public void setFile(String file) { this.file = file; }
@Option(longName = "all", shortName = "a", required = false) @Description("include files that begins with .") public void setAll(boolean all) { this.all = all; }
@Argument(index = 0, argName = "map") @Description("the name of the map to get from") public void setMap(String map) { this.map = map; }
@Argument(index = 1, argName = "keys", required = false) @Description("the keys to get") public void setKeys(List<String> keys) { this.keys = keys; }
@Argument(index = 0, argName = "address") @Description("the bus address destination") public void setAddresses(List<String> addresses) { this.addresses = addresses; }
@Option(longName = "local", flag = true) @Description("subscribe to a local address") public void setLocal(boolean local) { this.local = local; }
@Option(longName = "test", argName = "test") @Description("Select one or several tests to run") public void setTest(String test) { this.test = test; }
@Option(longName = "report", argName = "report") @Description("Report the execution to a file in JUnit XML format") public void setReport(boolean report) { // Todo report dir ???? this.report = report; }
@Option(longName = "timeout", argName = "timeout") @Description("Set the test suite timeout in millis") public void setTimeout(long timeout) { this.timeout = timeout; }
@Argument(index = 0, argName = "name") @Description("The histogram metrics name, can be a prefix or a precise name") public void setName(String name) { this.name = name; }
@Argument(index = 1, argName = "columns", required = false) @Description("The configurable histogram metrics columns to show [min max 75% 95% 98% 99% 99.9%]") public void setColumns(List<String> columns) { this.columns = columns; }
@Argument(index = 0, argName = "name") @Description("the metrics name, can be a metrics prefix or a precise name") public void setName(String name) { this.name = name; }