public class RoyaleUnitSocketServer extends Object implements IRoyaleUnitServer
| Constructor and Description |
|---|
RoyaleUnitSocketServer(int port,
int timeout,
int inboundBufferSize,
boolean waitForPolicyFile) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException() |
boolean |
isPending() |
String |
readNextTokenFromSocket()
Reads tokens from the socket input stream based on NULL_BYTE as a delimiter
|
void |
start()
Starts the socket server, managing policy file requests, and starting the test process.
|
void |
stop()
Stops the socket server, notifying the test runner, and closing the appropriate connections.
|
public RoyaleUnitSocketServer(int port,
int timeout,
int inboundBufferSize,
boolean waitForPolicyFile)
public void start()
throws IOException
start in interface IRoyaleUnitServerIOExceptionpublic boolean isPending()
isPending in interface IRoyaleUnitServerpublic Exception getException()
getException in interface IRoyaleUnitServerpublic String readNextTokenFromSocket() throws IOException
readNextTokenFromSocket in interface IRoyaleUnitServerIOExceptionpublic void stop()
throws IOException,
InterruptedException
stop in interface IRoyaleUnitServerIOExceptionInterruptedExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.