Class Handler

java.lang.Object
com.jk.core.test.Handler
All Implemented Interfaces:
Runnable, org.jacoco.core.data.IExecutionDataVisitor, org.jacoco.core.data.ISessionInfoVisitor

public class Handler extends Object implements Runnable, org.jacoco.core.data.ISessionInfoVisitor, org.jacoco.core.data.IExecutionDataVisitor
This class represents a handler for processing client connections and collecting execution data from connected clients.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    This method runs the handler logic to process the connected client.
    void
    visitClassExecution(org.jacoco.core.data.ExecutionData data)
    This method visits the class execution data received from the client.
    void
    visitSessionInfo(org.jacoco.core.data.SessionInfo info)
    This method visits the session info received from the client.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • run

      public void run()
      This method runs the handler logic to process the connected client.

      This method is executed in a separate thread.

      Specified by:
      run in interface Runnable
    • visitSessionInfo

      public void visitSessionInfo(org.jacoco.core.data.SessionInfo info)
      This method visits the session info received from the client.

      Provides session information for the subsequent execution data calls. Incase of merged sessions this method might be called multiple times

      Specified by:
      visitSessionInfo in interface org.jacoco.core.data.ISessionInfoVisitor
      Parameters:
      info - Specifies the session information.
    • visitClassExecution

      public void visitClassExecution(org.jacoco.core.data.ExecutionData data)
      This method visits the class execution data received from the client.
      Specified by:
      visitClassExecution in interface org.jacoco.core.data.IExecutionDataVisitor
      Parameters:
      data - Specifies the execution data for a class.