/** * Deploy a verticle programmatically * * @param main The main of the verticle * @param config JSON config to provide to the verticle * @param instances The number of instances to deploy (defaults to 1) */ public void deployVerticle(String main, JsonObject config, int instances) { deployVerticle(main, config, instances, null); }
/** * Deploy a verticle programmatically * * @param main The main of the verticle * @param config JSON config to provide to the verticle */ public void deployVerticle(String main, JsonObject config) { deployVerticle(main, config, 1); }
/** * Deploy a worker verticle programmatically * * @param main The main of the verticle */ public void deployVerticle(String main) { deployVerticle(main, null, 1); }
/** * Deploy a verticle programmatically * * @param main The main of the verticle * @param instances The number of instances to deploy (defaults to 1) */ public void deployVerticle(String main, int instances) { deployVerticle(main, null, instances); }
public Promise<AsyncResult<String>> deployVerticle(final String main) { final Promise<AsyncResult<String>> donePromise = new DefaultPromise<AsyncResult<String>>(); container.deployVerticle(main, donePromise); return donePromise; }