public class TcpClientOutput extends Object implements IAgentOutput
Constructor and Description |
---|
TcpClientOutput(IExceptionLogger logger)
New controller instance.
|
Modifier and Type | Method and Description |
---|---|
protected Socket |
createSocket(AgentOptions options)
Open a socket based on the given configuration.
|
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 TcpClientOutput(IExceptionLogger logger)
logger
- logger to use in case of exceptions is spawned threadspublic void startup(AgentOptions options, RuntimeData data) throws IOException
IAgentOutput
startup
in interface IAgentOutput
options
- Options used to configure the agent controllerdata
- Execution data for this agentIOException
public void shutdown() throws Exception
IAgentOutput
shutdown
in interface IAgentOutput
Exception
- in case shutdown failspublic void writeExecutionData(boolean reset) throws IOException
IAgentOutput
writeExecutionData
in interface IAgentOutput
reset
- if true
execution data is cleared afterwardsIOException
- in case writing failsprotected Socket createSocket(AgentOptions options) throws IOException
options
- address and port configurationIOException
Copyright © 2023. All rights reserved.