Class ZookeeperAutoConfiguration

java.lang.Object
com.netflix.genie.web.spring.autoconfigure.ZookeeperAutoConfiguration

@Configuration @EnableConfigurationProperties(ZookeeperProperties.class) @AutoConfigureAfter(org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration.class) @ConditionalOnBean(org.apache.curator.framework.CuratorFramework.class) public class ZookeeperAutoConfiguration extends Object
Auto configuration for Zookeper components.
Since:
4.0.0
  • Constructor Details

    • ZookeeperAutoConfiguration

      public ZookeeperAutoConfiguration()
  • Method Details

    • leaderInitiatorFactory

      @Bean @ConditionalOnMissingBean(org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean.class) public org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean leaderInitiatorFactory(org.apache.curator.framework.CuratorFramework client, ZookeeperProperties zookeeperProperties)
      The leadership initialization factory bean which will create a LeaderInitiator to kick off the leader election process within this node for the cluster if Zookeeper is configured.
      Parameters:
      client - The curator framework client to use
      zookeeperProperties - The Zookeeper properties to use
      Returns:
      The factory bean