Class ZookeeperServiceImporter
java.lang.Object
io.vertx.servicediscovery.zookeeper.ZookeeperServiceImporter
- All Implemented Interfaces:
ServiceImporter, org.apache.curator.framework.recipes.cache.TreeCacheListener
public class ZookeeperServiceImporter
extends Object
implements ServiceImporter, org.apache.curator.framework.recipes.cache.TreeCacheListener
A service importer retrieving services from Zookeeper.
- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchildEvent(org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.framework.recipes.cache.TreeCacheEvent treeCacheEvent) voidCloses the importervoidstart(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future) Starts the importer.
-
Constructor Details
-
ZookeeperServiceImporter
public ZookeeperServiceImporter()
-
-
Method Details
-
start
public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future) Description copied from interface:ServiceImporterStarts the importer.- Specified by:
startin interfaceServiceImporter- Parameters:
vertx- the vertx instancepublisher- the service publisher instanceconfiguration- the bridge configuration if anyfuture- a future on which the bridge must report the completion of the starting
-
close
Description copied from interface:ServiceImporterCloses the importer- Specified by:
closein interfaceServiceImporter- Parameters:
closeHandler- the handle to be notified when importer is closed, may benull
-
childEvent
public void childEvent(org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.framework.recipes.cache.TreeCacheEvent treeCacheEvent) - Specified by:
childEventin interfaceorg.apache.curator.framework.recipes.cache.TreeCacheListener
-