public final class RestartableTestingServer
extends org.apache.curator.test.TestingServer
TestingServer which allows the server to be restarted.| Constructor and Description |
|---|
RestartableTestingServer(int port,
java.io.File tempDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
restart()
Restarts the internal testing server.
|
public RestartableTestingServer(int port,
java.io.File tempDirectory)
throws java.lang.Exception
port - port to usetempDirectory - directory to usejava.lang.Exceptionpublic void restart()
throws java.lang.Exception
TestingServer.stop() before calling
restart().java.lang.ExceptionCopyright © 2018. All Rights Reserved.