@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"); }