本文整理汇总了Java中org.vertx.java.platform.PlatformManager类的典型用法代码示例。如果您正苦于以下问题:Java PlatformManager类的具体用法?Java PlatformManager怎么用?Java PlatformManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlatformManager类属于org.vertx.java.platform包,在下文中一共展示了PlatformManager类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: connectMain
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
private static PlatformManager connectMain(int instances) throws MalformedURLException, InterruptedException {
System.out.println(System.getProperty("vertx.langs.spring"));
final CountDownLatch waitForDeploy = new CountDownLatch(2);
pm.deployModule("org.jacpfx.vertx.spring~vertx-spring-mongo-application~1.0-SNAPSHOT",
null,
instances,
(event) -> {
if (event.succeeded()) waitForDeploy.countDown();
});
pm.deployVerticle("spring:org.jacpfx.vertx.spring.services.RESTGetVerticleService",
null,
new URL[]{new File(".").toURI().toURL()},
instances,
null,
(event) -> {
if (event.succeeded()) waitForDeploy.countDown();
});
waitForDeploy.await(10000, TimeUnit.MILLISECONDS);
return pm;
}
开发者ID:amoAHCP,项目名称:vert.x-spring-microservice-demo,代码行数:22,代码来源:RestGetTest.java
示例2: main
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
/** 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());
}
});
}
开发者ID:chuidiang,项目名称:chuidiang-ejemplos,代码行数:14,代码来源:MainVerticle.java
示例3: connectMain
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
private static PlatformManager connectMain(int instances) throws MalformedURLException, InterruptedException {
final CountDownLatch waitForDeploy = new CountDownLatch(1);
pm.deployVerticle("org.jacpfx.vertx.spring.rest.RestEntryVerticle",
null,
new URL[]{new File(".").toURI().toURL()},
instances,
null,
(event) -> {
if (event.succeeded()) waitForDeploy.countDown();
});
waitForDeploy.await(1000, TimeUnit.MILLISECONDS);
return pm;
}
开发者ID:amoAHCP,项目名称:vert.x-spring-microservice-demo,代码行数:16,代码来源:RestEntryVerticleTest.java
示例4: connect
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
private static PlatformManager connect(int instances) throws MalformedURLException, InterruptedException {
final CountDownLatch waitForDeploy = new CountDownLatch(1);
pm.deployVerticle("org.jacpfx.vertx.spring.rest.RestEntryVerticle",
null,
new URL[]{new File(".").toURI().toURL()},
instances,
null,
(event) -> {
if (event.succeeded()) waitForDeploy.countDown();
});
waitForDeploy.await(1000, TimeUnit.MILLISECONDS);
return pm;
}
开发者ID:amoAHCP,项目名称:vert.x-spring-microservice-demo,代码行数:16,代码来源:RestEntryVerticleTest.java
示例5: connect
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
private static PlatformManager connect(int instances) throws MalformedURLException, InterruptedException {
final CountDownLatch waitForDeploy = new CountDownLatch(1);
pm.deployVerticle("spring:org.jacpfx.vertx.spring.ws.WSEntryVerticle",
null,
new URL[]{new File(".").toURI().toURL()},
instances,
null,
(event) -> {
if (event.succeeded()) waitForDeploy.countDown();
});
waitForDeploy.await(1000, TimeUnit.MILLISECONDS);
return pm;
}
开发者ID:amoAHCP,项目名称:vert.x-spring-microservice-demo,代码行数:16,代码来源:WSEntryVerticleTest.java
示例6: start
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
@Override
public void start(StartContext context) throws StartException {
ServiceTarget target = context.getChildTarget();
VertxService vertxSvc = new VertxService();
target.addService(VERTX, vertxSvc)
.addDependency(VERTX_PLATFORM_MANAGER, PlatformManager.class, vertxSvc.platformManagerInjector())
.install();
target.addService(VERTX_PLATFORM_MANAGER, new PlatformManagerService())
.install();
}
开发者ID:liveoak-io,项目名称:liveoak,代码行数:12,代码来源:VertxBootstrappingService.java
示例7: platformManagerInjector
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
public Injector<PlatformManager> platformManagerInjector() {
return this.platformManagerInjector;
}
开发者ID:liveoak-io,项目名称:liveoak,代码行数:4,代码来源:VertxService.java
示例8: getValue
import org.vertx.java.platform.PlatformManager; //导入依赖的package包/类
@Override
public PlatformManager getValue() throws IllegalStateException, IllegalArgumentException {
return this.platformManager;
}
开发者ID:liveoak-io,项目名称:liveoak,代码行数:5,代码来源:PlatformManagerService.java
注:本文中的org.vertx.java.platform.PlatformManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论