public interface ServerFactory
Modifier and Type | Method and Description |
---|---|
void |
startServer(ServerUtils.ProcessParameters processParameters)
Starts a new server in a forked process.
|
void |
waitFor(java.time.Duration duration)
Waits for the server to start.
|
void startServer(ServerUtils.ProcessParameters processParameters) throws java.io.IOException
processParameters
- the process parametersjava.io.IOException
- in case forking failsvoid waitFor(java.time.Duration duration) throws java.lang.InterruptedException
duration
- the amount of time to waitjava.lang.InterruptedException
- in case the thread is interrupted