Class CuratorModule

java.lang.Object
org.apache.druid.curator.CuratorModule
All Implemented Interfaces:
com.google.inject.Module

public class CuratorModule extends Object implements com.google.inject.Module
  • Constructor Details

    • CuratorModule

      public CuratorModule()
    • CuratorModule

      public CuratorModule(boolean haltOnFailedStart)
      Parameters:
      haltOnFailedStart - set to true if the JVM needs to be halted within 30 seconds of failed initialization due to unhandled curator exceptions.
  • Method Details

    • configure

      public void configure(com.google.inject.Binder binder)
      Specified by:
      configure in interface com.google.inject.Module
    • createCurator

      public static org.apache.curator.framework.CuratorFramework createCurator(CuratorConfig config)
      Create the Curator framework outside of Guice given the ZK config. Primarily for tests.
    • makeCurator

      @Provides public org.apache.curator.framework.CuratorFramework makeCurator(ZkEnablementConfig zkEnablementConfig, CuratorConfig config, DruidConnectionStateListener connectionStateListener, ServiceEmitter emitter, Lifecycle lifecycle)
      Provide the Curator framework via Guice, integrated with the Druid lifecycle.
    • makeConnectionStateListener

      @Provides public DruidConnectionStateListener makeConnectionStateListener(ServiceEmitter emitter)
      Provide an instance of DruidConnectionStateListener for monitoring connection state.