예제 #1
0
파일: Container.java 프로젝트: jhgao/vert.x
 /**
  * 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);
 }
예제 #2
0
파일: Container.java 프로젝트: jhgao/vert.x
 /**
  * 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);
 }
예제 #3
0
파일: Container.java 프로젝트: jhgao/vert.x
 /**
  * Deploy a worker verticle programmatically
  *
  * @param main The main of the verticle
  */
 public void deployVerticle(String main) {
   deployVerticle(main, null, 1);
 }
예제 #4
0
파일: Container.java 프로젝트: jhgao/vert.x
 /**
  * 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;
 }