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
IAgentControllerstartup in interface IAgentControlleroptions - Options used to configure the agent controllerruntime - Coverage runtime this agent controller will be connected toIOExceptionpublic void shutdown()
throws Exception
IAgentControllershutdown in interface IAgentControllerException - in case shutdown failspublic void writeExecutionData()
throws IOException
IAgentControllerwriteExecutionData in interface IAgentControllerIOExceptionprotected Socket createSocket(AgentOptions options) throws IOException
options - address and port configurationIOExceptionCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.