java.lang.Object
org.springframework.cloud.contract.stubrunner.spring.cloud.zookeeper.ZookeeperStubsRegistrar
All Implemented Interfaces:
AutoCloseable, StubsRegistrar

public class ZookeeperStubsRegistrar extends Object implements StubsRegistrar
Registers all stubs in Zookeeper Service Discovery.
Since:
1.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • ZookeeperStubsRegistrar

      public ZookeeperStubsRegistrar(StubRunning stubRunning, org.apache.curator.framework.CuratorFramework curatorFramework, StubMapperProperties stubMapperProperties, org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryProperties zookeeperDiscoveryProperties)
  • Method Details

    • registerStubs

      public void registerStubs()
      Specified by:
      registerStubs in interface StubsRegistrar
    • serviceInstance

      protected org.apache.curator.x.discovery.ServiceInstance serviceInstance(StubConfiguration stubConfiguration, int port)
    • serviceDiscovery

      protected org.apache.curator.x.discovery.ServiceDiscovery serviceDiscovery(org.apache.curator.x.discovery.ServiceInstance serviceInstance)
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception