Java 类io.vertx.core.cli.annotations.Description 实例源码

项目:vertx-shell    文件:BusPublish.java   
@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));
  }
}
项目:vertx-shell    文件:VerticleDeploy.java   
@Argument(index = 0, argName = "name")
@Description("the verticle name")
public void setName(String name) {
  this.name = name;
}
项目:vertx-shell    文件:VerticleDeploy.java   
@Argument(index = 1, argName = "options", required = false)
@Description("the verticle deployment options as JSON string")
public void setOptions(String options) {
  this.options = options;
}
项目:vertx-shell    文件:LocalMapPut.java   
@Argument(index = 0, argName = "map", required = false)
@Description("the local shared map name")
public void setMap(String map) {
  this.map = map;
}
项目:vertx-shell    文件:LocalMapPut.java   
@Argument(index = 1, argName = "key", required = false)
@Description("the key to put")
public void setKey(String key) {
  this.key = key;
}
项目:vertx-shell    文件:LocalMapPut.java   
@Argument(index = 2, argName = "value", required = false)
@Description("the value to put")
public void setValue(String value) {
  this.value = value;
}
项目:vertx-shell    文件:Sleep.java   
@Description("the number of seconds to wait")
@Argument(index = 0, argName = "seconds")
public void setSeconds(String seconds) {
  this.seconds = seconds;
}
项目:vertx-shell    文件:BusPublish.java   
@Argument(index =  0, argName = "address")
@Description("the bus address destination")
public void setAddress(String address) {
  this.address = address;
}
项目:vertx-shell    文件:BusPublish.java   
@Argument(index =  1, argName = "body", required = false)
@Description("the message body")
public void setBody(String body) {
  this.body = body;
}
项目:vertx-shell    文件:BusPublish.java   
@Option(longName = "verbose", flag = true)
@Description("verbose output")
public void setVerbose(boolean verbose) {
  this.verbose = verbose;
}
项目:vertx-shell    文件:BusPublish.java   
@Option(longName = "type")
@Description("the object type")
public void setType(ObjectType type) {
  this.type = type;
}
项目:vertx-shell    文件:LocalMapRm.java   
@Argument(index = 0, argName = "map", required = false)
@Description("the name of the map to get from")
public void setMap(String map) {
  this.map = map;
}
项目:vertx-shell    文件:LocalMapRm.java   
@Argument(index = 1, argName = "keys")
@Description("the keys to get")
public void setKeys(List<String> keys) {
  this.keys = keys;
}
项目:vertx-shell    文件:BusSend.java   
@Option(longName = "timeout")
@Description("the send timeout")
public void setTimeout(long timeout) {
  options.setSendTimeout(timeout);
}
项目:vertx-shell    文件:BusSend.java   
@Option(longName = "reply", flag = true)
@Description("wait for a reply and print it on the console")
public void setReply(boolean reply) {
  this.reply = reply;
}
项目:vertx-shell    文件:FileSystemCd.java   
@Argument(index = 0, argName = "dir", required = false)
@Description("the new working dir")
public void setDir(String dir) {
  this.dir = dir;
}
项目:vertx-shell    文件:VerticleUndeploy.java   
@Argument(index = 0, argName = "id")
@Description("the verticle id")
public void setId(String id) {
  this.id = id;
}
项目:vertx-shell    文件:FileSystemLs.java   
@Option(shortName = "l", flag = true)
@Description("list in long format")
public void setEll(boolean ell) {
  this.ell = ell;
}
项目:vertx-shell    文件:FileSystemLs.java   
@Argument(index = 0, argName = "file", required = false)
@Description("the file to list")
@DefaultValue(".")
public void setFile(String file) {
  this.file = file;
}
项目:vertx-shell    文件:FileSystemLs.java   
@Option(longName = "all", shortName = "a", required = false)
@Description("include files that begins with .")
public void setAll(boolean all) {
  this.all = all;
}
项目:vertx-shell    文件:LocalMapGet.java   
@Argument(index = 0, argName = "map")
@Description("the name of the map to get from")
public void setMap(String map) {
  this.map = map;
}
项目:vertx-shell    文件:LocalMapGet.java   
@Argument(index = 1, argName = "keys", required = false)
@Description("the keys to get")
public void setKeys(List<String> keys) {
  this.keys = keys;
}
项目:vertx-shell    文件:BusTail.java   
@Argument(index =  0, argName = "address")
@Description("the bus address destination")
public void setAddresses(List<String> addresses) {
  this.addresses = addresses;
}
项目:vertx-shell    文件:BusTail.java   
@Option(longName = "verbose", flag = true)
@Description("verbose output")
public void setVerbose(boolean verbose) {
  this.verbose = verbose;
}
项目:vertx-shell    文件:BusTail.java   
@Option(longName = "local", flag = true)
@Description("subscribe to a local address")
public void setLocal(boolean local) {
  this.local = local;
}
项目:vertx-unit    文件:TestCommand.java   
@Option(longName = "test", argName = "test")
@Description("Select one or several tests to run")
public void setTest(String test) {
  this.test = test;
}
项目:vertx-unit    文件:TestCommand.java   
@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;
}
项目:vertx-unit    文件:TestCommand.java   
@Option(longName = "timeout", argName = "timeout")
@Description("Set the test suite timeout in millis")
public void setTimeout(long timeout) {
  this.timeout = timeout;
}
项目:vertx-dropwizard-metrics    文件:MetricsHistogram.java   
@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;
}
项目:vertx-dropwizard-metrics    文件:MetricsHistogram.java   
@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;
}
项目:vertx-dropwizard-metrics    文件:MetricsInfo.java   
@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;
}