/** * Sets the cluster port. * * @param port the port */ @Option(longName = "cluster-port", argName = "port") @Description("Port to use for cluster communication. Default is 0 which means choose a spare random port.") @DefaultValue("0") public void setClusterPort(int port) { this.clusterPort = port; }
@Option(longName = "redeploy", argName = "includes") @Description("Enable automatic redeployment of the application. This option takes a set on includes as parameter " + "indicating which files need to be watched. Patterns are separated by a comma.") @ParsedAsList public void setRedeploy(List<String> redeploy) { this.redeploy = redeploy; }
/** * 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; }
/** * Gets system properties passed in the user command line. The user can configure system properties using * {@code -Dkey=value}. * * @param props the properties */ @SuppressWarnings("unused") @Option(longName = "systemProperty", shortName = "D", argName = "key>=<value") @Description("Set a system property") @Hidden public void setSystemProps(List<String> props) { this.systemProperties = props; }
/** * Sets the main verticle that is deployed. * * @param verticle the verticle */ @Argument(index = 0, argName = "main-verticle", required = true) @Description("The main verticle to deploy, it can be a fully qualified class name or a file.") public void setMainVerticle(String verticle) { this.mainVerticle = verticle; }
@io.vertx.core.cli.annotations.Option(longName = "option", shortName = "o") @ParsedAsList(separator = ":") public void setFoo(List<String> foo) { } }
@io.vertx.core.cli.annotations.Option(longName = "person4", shortName = "p4") @ConvertedBy(Person4Converter.class) public void setAFourthPerson(Person4 aPerson) { this.aFourthPerson = aPerson; }
/** * Sets the HA group name. * * @param group the name of the group, default to {@code __DEFAULT__}. */ @Option(longName = "hagroup", argName = "group") @Description("used in conjunction with -ha this specifies the HA group this node will join. There can be multiple " + "HA groups in a cluster. Nodes will only failover to other nodes in the same group. Defaults to '__DEFAULT__'.") @DefaultValue("__DEFAULT__") public void setHAGroup(String group) { this.haGroup = group; }
/** * 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 = "redeploy-grace-period", argName = "period") @Description("When redeploy is enabled, this option configures the grace period between 2 redeployments. The time " + "is given in milliseconds. 1000 ms by default.") @DefaultValue("1000") public void setRedeployGracePeriod(long period) { this.redeployGracePeriod = period; }
@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 = "redeploy-termination-period", argName = "period") @Description("When redeploy is enabled, this option configures the time waited to be sure that the previous " + "version of the application has been stopped. It is useful on Windows, where the 'terminate' command may take time to be " + "executed.The time is given in milliseconds. 0 ms by default.") @DefaultValue("0") public void setRedeployStopWaitingTime(long period) { this.redeployTerminationPeriod = period; }
@Option(longName = "name", shortName = "n", required = true, argName = "name") @Description("your name") public void setTheName(String name) { this.name = name; }
/** * Sets the quorum option. * * @param quorum the quorum, default to 1. */ @Option(longName = "quorum", argName = "q") @Description("Used in conjunction with -ha this specifies the minimum number of nodes in the cluster for any HA " + "deploymentIDs to be active. Defaults to 1.") @DefaultValue("-1") public void setQuorum(int quorum) { this.quorum = quorum; }
@Option(longName = "name", shortName = "n", required = true, argName = "name") @Description("your name") public void setTheName(String name) { this.name = name; }
/** * Sets the cluster public port. * * @param port the port */ @Option(longName = "cluster-public-port", argName = "public-port") @Description("Public port to use for cluster communication. Default is -1 which means same as cluster port.") @DefaultValue("-1") public void setClusterPublicPort(int port) { this.clusterPublicPort = port; }
@io.vertx.core.cli.annotations.Option(longName = "option", shortName = "o") @Description("This option is awesome") public void setFoo(String foo) { } }
/** * Sets the number of instance of the verticle to create. * * @param instances the number of instances */ @Option(longName = "instances", argName = "instances") @DefaultValue("1") @Description("Specifies how many instances of the verticle will be deployed. Defaults to 1.") public void setInstances(int instances) { this.instances = instances; }
@Option(longName = "redeploy-scan-period", argName = "period") @Description("When redeploy is enabled, this option configures the file system scanning period to detect file " + "changes. The time is given in milliseconds. 250 ms by default.") @DefaultValue("250") public void setRedeployScanPeriod(long period) { this.redeployScanPeriod = period; }