public class TestingZooKeeperServer extends Object implements Closeable
Constructor and Description |
---|
TestingZooKeeperServer(QuorumConfigBuilder configBuilder) |
TestingZooKeeperServer(QuorumConfigBuilder configBuilder,
int thisInstanceIndex) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InstanceSpec |
getInstanceSpec() |
Collection<InstanceSpec> |
getInstanceSpecs() |
int |
getLocalPort() |
void |
kill() |
void |
restart()
Restart the server.
|
void |
start() |
void |
stop() |
public TestingZooKeeperServer(QuorumConfigBuilder configBuilder)
public TestingZooKeeperServer(QuorumConfigBuilder configBuilder, int thisInstanceIndex)
public Collection<InstanceSpec> getInstanceSpecs()
public void kill()
public void restart() throws Exception
Exception
public void stop() throws IOException
IOException
public InstanceSpec getInstanceSpec()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int getLocalPort()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.