/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
@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; }
/** * 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; }
@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 = "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; }
@io.vertx.core.cli.annotations.Option(longName = "option", shortName = "o") @DefaultValue("bar") public void setFoo(String foo) { } }
@Argument(index = 1, required = false) @DefaultValue("25") public void setY(int s) { y.set(s); } }
@Argument(index = 0, required = false) @DefaultValue("Bill,Balantine") @ConvertedBy(Person4Converter.class) public void setX(Person4 s) { reference.set(s); } }
/** * 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; }
/** * 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; }
/** * 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; }
@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 = "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; }
/** * 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; }
/** * 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; }
@Argument(index = 1, required = false) @DefaultValue("25") public void setY(int s) { y.set(s); } }