Class RJobProcessor
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.measurement.r.RJobProcessor
-
-
Constructor Summary
Constructors Constructor Description RJobProcessor(RserveConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enqueue(RJob job)
Enqueues the givenjob
for processing by this job processor.void
start()
Starts processing enqueued jobs.void
waitUntilFinished()
Waits until all jobs left in this processor's queue have been processed.
-
-
-
Constructor Detail
-
RJobProcessor
public RJobProcessor(RserveConnection connection)
-
-
Method Detail
-
enqueue
public void enqueue(RJob job)
Enqueues the givenjob
for processing by this job processor.- Parameters:
job
- the job to be scheduled for processing
-
start
public void start()
Starts processing enqueued jobs.
-
waitUntilFinished
public void waitUntilFinished()
Waits until all jobs left in this processor's queue have been processed. This effectively stops the calling thread.
-
-