コード例 #1
0
 static ProcessorService createProxy(Vertx vertx, String address) {
   return ProxyHelper.createProxy(ProcessorService.class, vertx, address);
   // Alternatively, you can create the proxy directly using:
   // return new ProcessorServiceVertxEBProxy(vertx, address);
   // The name of the class to instantiate is the service interface + `VertxEBProxy`.
   // This class is generated during the compilation
 }
コード例 #2
0
 @Override
 public void start() throws Exception {
   nominalAddress = config().getString("registry.address", "vertx.registry");
   ProxyHelper.registerService(DiscoveryService.class, vertx, this, nominalAddress);
   // Announce the service
   vertx
       .eventBus()
       .publish(
           nominalAddress + ".announce",
           new JsonObject().put("event", "arrival").put("registry.address", nominalAddress));
 }
コード例 #3
0
 @Override
 public void start() throws Exception {
   service = new DataStorageServiceImpl(vertx, config());
   ProxyHelper.registerService(DataStorageService.class, vertx, service, "vertx.checkin");
 }
コード例 #4
0
 static InitializeIngestorService createProxy(Vertx vertx, String address) {
   return ProxyHelper.createProxy(InitializeIngestorService.class, vertx, address);
 }