IAgentOutput
public class TcpServerOutput extends java.lang.Object implements IAgentOutput
Constructor | Description |
---|---|
TcpServerOutput(IExceptionLogger logger) |
New controller instance.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.net.ServerSocket |
createServerSocket(AgentOptions options) |
Open a server socket based on the given configuration.
|
protected java.net.InetAddress |
getInetAddress(java.lang.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 java.io.IOException
IAgentOutput
startup
in interface IAgentOutput
options
- Options used to configure the agent controllerdata
- Execution data for this agentjava.io.IOException
public void shutdown() throws java.lang.Exception
IAgentOutput
shutdown
in interface IAgentOutput
java.lang.Exception
- in case shutdown failspublic void writeExecutionData(boolean reset) throws java.io.IOException
IAgentOutput
writeExecutionData
in interface IAgentOutput
reset
- if true
execution data is cleared afterwardsjava.io.IOException
- in case writing failsprotected java.net.ServerSocket createServerSocket(AgentOptions options) throws java.io.IOException
options
- address and port configurationjava.io.IOException
protected java.net.InetAddress getInetAddress(java.lang.String address) throws java.net.UnknownHostException
InetAddress
object to open the server socket on.address
- address specified as a stringjava.net.UnknownHostException
Copyright © 2018. All rights reserved.