Class QuorumConfigBuilder

java.lang.Object
org.apache.curator.test.QuorumConfigBuilder
All Implemented Interfaces:
Closeable, AutoCloseable

public class QuorumConfigBuilder extends Object implements Closeable
  • Constructor Details

  • Method Details

    • isFromRandom

      public boolean isFromRandom()
    • buildConfig

      public org.apache.zookeeper.server.quorum.QuorumPeerConfig buildConfig() throws Exception
      Throws:
      Exception
    • getInstanceSpec

      public InstanceSpec getInstanceSpec(int index)
    • getInstanceSpecs

      public List<InstanceSpec> getInstanceSpecs()
    • size

      public int size()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • buildConfig

      public org.apache.zookeeper.server.quorum.QuorumPeerConfig buildConfig(int instanceIndex) throws Exception
      Throws:
      Exception
    • buildConfig

      public org.apache.zookeeper.server.quorum.QuorumPeerConfig buildConfig(int instanceIndex, int instancePort) throws Exception
      Throws:
      Exception
    • buildConfigProperties

      public Properties buildConfigProperties(int instanceIndex) throws Exception
      Throws:
      Exception
    • buildConfigProperties

      public Properties buildConfigProperties(int instanceIndex, int instancePort) throws Exception
      Throws:
      Exception
    • bindInstance

      public QuorumPeerConfigBuilder bindInstance(int instanceIndex, int instancePort)