Search in sources :

Example 1 with PlatformManager

use of org.vertx.java.platform.PlatformManager in project chuidiang-ejemplos by chuidiang.

the class MainVerticle method main.

/**
 * It starts vertx and deploys this project module
 */
public static void main(String[] args) throws InterruptedException, IOException {
    PlatformManager pm = PlatformLocator.factory.createPlatformManager(5558, "localhost");
    pm.deployModule("com.chuidiang.examples~vertx~1.0.0", null, 1, new Handler<AsyncResult<String>>() {

        @Override
        public void handle(AsyncResult<String> arg0) {
            System.out.println("module deploying result " + arg0.result());
        }
    });
}
Also used : PlatformManager(org.vertx.java.platform.PlatformManager) AsyncResult(org.vertx.java.core.AsyncResult)

Aggregations

AsyncResult (org.vertx.java.core.AsyncResult)1 PlatformManager (org.vertx.java.platform.PlatformManager)1