Package cs1302.tracer.batch
Class BatchTraceWorker
java.lang.Object
cs1302.tracer.batch.BatchTraceWorker
- All Implemented Interfaces:
AutoCloseable
Worker managing a persistent guest JVM session and executing batch trace jobs sequentially.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchTraceWorker(int maxJobsPerWorker) Constructs a worker with specified job recycling threshold. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()execute(BatchJobRequest req) Executes a single trace job request and produces a correlated response.
-
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
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:
closein interfaceAutoCloseable
-