Package org.apache.curator.test
Class ZooKeeperServerEmbeddedAdapter
java.lang.Object
org.apache.curator.test.ZooKeeperServerEmbeddedAdapter
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
org.apache.zookeeper.server.ServerCnxnFactory
void
kill()
void
start
(QuorumPeerConfigBuilder configBuilder)
-
Constructor Details
-
ZooKeeperServerEmbeddedAdapter
public ZooKeeperServerEmbeddedAdapter()
-
-
Method Details
-
start
-
getClientPort
- Throws:
Exception
-
getServerCnxnFactory
public org.apache.zookeeper.server.ServerCnxnFactory getServerCnxnFactory() -
kill
public void kill() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-