Package org.apache.curator.test
Class QuorumConfigBuilder
java.lang.Object
org.apache.curator.test.QuorumConfigBuilder
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbindInstance
(int instanceIndex, int instancePort) org.apache.zookeeper.server.quorum.QuorumPeerConfig
org.apache.zookeeper.server.quorum.QuorumPeerConfig
buildConfig
(int instanceIndex) org.apache.zookeeper.server.quorum.QuorumPeerConfig
buildConfig
(int instanceIndex, int instancePort) buildConfigProperties
(int instanceIndex) buildConfigProperties
(int instanceIndex, int instancePort) void
close()
getInstanceSpec
(int index) boolean
int
size()
-
Constructor Details
-
QuorumConfigBuilder
-
QuorumConfigBuilder
-
-
Method Details
-
isFromRandom
public boolean isFromRandom() -
buildConfig
- Throws:
Exception
-
getInstanceSpec
-
getInstanceSpecs
-
size
public int size() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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
- Throws:
Exception
-
buildConfigProperties
- Throws:
Exception
-
bindInstance
-