public interface WorkerMonitor
Modifier and Type | Method and Description |
---|---|
int |
getAvailableJobsCount()
Returns a snapshot count of the available jobs
|
int |
getQueuedJobsCount()
Retrieves a snapshot of job count in the waiting (backlogged) queue
|
int |
getRunningJobsCount()
Returns a snapshot count of the jobs currently running
|
void |
process(RenderingJob job)
Start processing a job, assign it to a worker thread.
|
void |
start()
Start processing the worker monitor
|
void |
stop()
Stop processing the worker monitor
Finish all jobs
|
void |
waitForRenderingJobs(List<RenderingJob> renderingJobs)
Wait for all rendering jobs in the collection to finish successfully or otherwise.
|
void start()
void stop()
int getQueuedJobsCount()
int getAvailableJobsCount()
int getRunningJobsCount()
void process(RenderingJob job)
job
- void waitForRenderingJobs(List<RenderingJob> renderingJobs)
renderingJobs
- the Collection of rendering job objects to wait for.Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.