public class TcpServerOutput extends Object implements IAgentOutput
| Constructor and Description |
|---|
TcpServerOutput(IExceptionLogger logger)
New controller instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ServerSocket |
createServerSocket(AgentOptions options)
Open a server socket based on the given configuration.
|
protected InetAddress |
getInetAddress(String address)
Returns the
InetAddress object to open the server socket on. |
void |
shutdown()
Shutdown the agent controller and clean up any resources it has created.
|
void |
startup(AgentOptions options,
RuntimeData data)
Configure the agent controller with the supplied options and connect it
to the coverage runtime
|
void |
writeExecutionData(boolean reset)
Write all execution data in the runtime to a location determined by the
agent controller.
|
public TcpServerOutput(IExceptionLogger logger)
logger - logger to use in case of exceptions is spawned threadspublic void startup(AgentOptions options, RuntimeData data) throws IOException
IAgentOutputstartup in interface IAgentOutputoptions - Options used to configure the agent controllerdata - Execution data for this agentIOExceptionpublic void shutdown()
throws Exception
IAgentOutputshutdown in interface IAgentOutputException - in case shutdown failspublic void writeExecutionData(boolean reset)
throws IOException
IAgentOutputwriteExecutionData in interface IAgentOutputreset - if true execution data is cleared afterwardsIOException - in case writing failsprotected ServerSocket createServerSocket(AgentOptions options) throws IOException
options - address and port configurationIOExceptionprotected InetAddress getInetAddress(String address) throws UnknownHostException
InetAddress object to open the server socket on.address - address specified as a stringUnknownHostExceptionCopyright © 2024. All rights reserved.