public class TcpClientController extends Object implements IAgentController
Constructor and Description |
---|
TcpClientController(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,
IRuntime runtime)
Configure the agent controller with the supplied options and connect it
to the coverage runtime
|
void |
writeExecutionData()
Write all execution data in the runtime to a location determined by the
agent controller.
|
public TcpClientController(IExceptionLogger logger)
logger
- logger to use in case of exceptions is spawned threadspublic void startup(AgentOptions options, IRuntime runtime) throws IOException
IAgentController
startup
in interface IAgentController
options
- Options used to configure the agent controllerruntime
- Coverage runtime this agent controller will be connected toIOException
public void shutdown() throws Exception
IAgentController
shutdown
in interface IAgentController
Exception
- in case shutdown failspublic void writeExecutionData() throws IOException
IAgentController
writeExecutionData
in interface IAgentController
IOException
protected Socket createSocket(AgentOptions options) throws IOException
options
- address and port configurationIOException
Copyright © 2012. All Rights Reserved.