Exemplo n.º 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
 }
 @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));
 }
 @Override
 public void start() throws Exception {
   service = new DataStorageServiceImpl(vertx, config());
   ProxyHelper.registerService(DataStorageService.class, vertx, service, "vertx.checkin");
 }
 static InitializeIngestorService createProxy(Vertx vertx, String address) {
   return ProxyHelper.createProxy(InitializeIngestorService.class, vertx, address);
 }