/** * Enables / disables the clustering. * * @param cluster whether or not to start vert.x in clustered mode. */ @Option(longName = "cluster", acceptValue = false, flag = true) @Description("If specified then the vert.x instance will form a cluster with any other vert.x instances on the " + "network.") public void setCluster(boolean cluster) { this.cluster = cluster; }
opt.setLongName(option.longName()) .setShortName(option.shortName()) .setMultiValued(option.acceptMultipleValues()) .setSingleValued(option.acceptValue()) .setArgName(option.argName()) .setFlag(option.flag()) .setHelp(option.help()) .setRequired(option.required());
opt.setLongName(option.longName()) .setShortName(option.shortName()) .setMultiValued(option.acceptMultipleValues()) .setSingleValued(option.acceptValue()) .setArgName(option.argName()) .setFlag(option.flag()) .setHelp(option.help()) .setRequired(option.required());
@Option( longName = "option2", shortName = "o2", acceptValue = false, required = false, flag = true ) public void setOption2(boolean option2) { this.option2 = option2; }
@Option(longName = "redeploy", flag = true) @Hidden public void setRedeploy(boolean redeploy) { this.redeploy = redeploy; }
/** * Sets the "application id" that would be to stop the application and be lsited in the {@code list} command. * * @param id the id */ @Option(longName = "vertx-id", shortName = "id", required = false, acceptValue = true) @Description("The id of the application, a random UUID by default") public void setApplicationId(String id) { this.id = id; }
/** * Sets the Java Virtual Machine options to pass to the spawned process. If not set, the JAVA_OPTS environment * variable is used. * * @param options the jvm options */ @Option(longName = "java-opts", required = false, acceptValue = true) @Description("Java Virtual Machine options to pass to the spawned process such as \"-Xmx1G -Xms256m " + "-XX:MaxPermSize=256m\". If not set the `JAVA_OPTS` environment variable is used.") public void setJavaOptions(String options) { this.jvmOptions = options; }
@io.vertx.core.cli.annotations.Option(longName = "strings", shortName = "str") public void setStrings(Set<String> strings) { this.strings = strings; } }
/** * Whether or not the verticle is deployed as a worker verticle. * * @param worker {@code true} to deploy the verticle as worker, {@code false} otherwise */ @Option(longName = "worker", acceptValue = false) @Description("If specified then the verticle is a worker verticle.") public void setWorker(boolean worker) { this.worker = worker; }
/** * Enables / disables the high-availability. * * @param ha whether or not to enable the HA. */ @Option(longName = "ha", acceptValue = false, flag = true) @Description("If specified the verticle will be deployed as a high availability (HA) deployment. This means it can " + "fail over to any other nodes in the cluster started with the same HA group.") public void setHighAvailability(boolean ha) { this.ha = ha; }
@Option(longName = "on-redeploy", argName = "cmd") @Description("Optional shell command executed when a redeployment is triggered") public void setOnRedeployCommand(String command) { this.onRedeployCommand = command; }
@Option( longName = "option1", shortName = "o1", argName = "opt", required = true ) public void setOption1(String option1) { this.option1 = option1; }
@io.vertx.core.cli.annotations.Option(longName = "person3", shortName = "p3") public void setaThirdPerson(Person3 aThirdPerson) { this.aThirdPerson = aThirdPerson; } }
/** * Sets the cluster host. * * @param host the cluster host */ @Option(longName = "cluster-host", argName = "host") @Description("host to bind to for cluster communication. If this is not specified vert.x will attempt to choose one" + " from the available interfaces.") public void setClusterHost(String host) { this.clusterHost = host; }
/** * Sets the cluster public host. * * @param host the host */ @Option(longName = "cluster-public-host", argName = "public-host") @Description("Public host to bind to for cluster communication. If not specified, Vert.x will use the same as cluster host.") public void setClusterPublicHost(String host) { this.clusterPublicHost = host; }
/** * A hidden option to set the launcher class. * * @param clazz the class */ @Option(longName = "launcher-class") @Hidden public void setLauncherClass(String clazz) { this.launcher = clazz; }
/** * Whether or not the created process error streams and output streams needs to be redirected to the launcher process. * * @param redirect {@code true} to enable redirection, {@code false} otherwise */ @Option(longName = "redirect-output", flag = true) @Hidden public void setRedirect(boolean redirect) { this.redirect = redirect; }
@Option(longName = "name", shortName = "n", required = true) public void setAName(String name) { this.name = name; }
@io.vertx.core.cli.annotations.Option(longName = "array", shortName = "a") public void setFoo(int[] list) { } }
@io.vertx.core.cli.annotations.Option(longName = "long", shortName = "J") public void setaLong(long aLong) { this.aLong = aLong; }