Class BatchTraceWorker

java.lang.Object
cs1302.tracer.batch.BatchTraceWorker
All Implemented Interfaces:
AutoCloseable

public final class BatchTraceWorker extends Object implements AutoCloseable
Worker managing a persistent guest JVM session and executing batch trace jobs sequentially.
  • Constructor Details

    • BatchTraceWorker

      public BatchTraceWorker(int maxJobsPerWorker)
      Constructs a worker with specified job recycling threshold.
      Parameters:
      maxJobsPerWorker - Maximum jobs before the guest process is recycled.
  • Method Details

    • execute

      public BatchJobResponse execute(BatchJobRequest req)
      Executes a single trace job request and produces a correlated response.
      Parameters:
      req - Job request specification.
      Returns:
      Batch job response containing execution or error results.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable