Class TcpConnection

java.lang.Object
org.jacoco.agent.rt.internal.output.TcpConnection
All Implemented Interfaces:
IRemoteCommandVisitor

class TcpConnection extends Object implements IRemoteCommandVisitor
Handler for a single socket based remote connection.
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init() throws IOException
      Throws:
      IOException
    • run

      public void run() throws IOException
      Processes all requests for this session until the socket is closed.
      Throws:
      IOException - in case of problems whith the connection
    • writeExecutionData

      public void writeExecutionData(boolean reset) throws IOException
      Dumps the current execution data if the connection is already initialized and the underlying socket is still open.
      Parameters:
      reset - if true execution data is cleared afterwards
      Throws:
      IOException
    • close

      public void close() throws IOException
      Closes the underlying socket if not closed yet.
      Throws:
      IOException
    • visitDumpCommand

      public void visitDumpCommand(boolean dump, boolean reset) throws IOException
      Description copied from interface: IRemoteCommandVisitor
      Requests a execution data dump with an optional reset.
      Specified by:
      visitDumpCommand in interface IRemoteCommandVisitor
      Parameters:
      dump - true if the dump should be executed
      reset - true if the reset should be executed
      Throws:
      IOException - in case of problems with the remote connection