|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkerMonitor
The Worker Monitor is a thread manager and monitor for async portlet aggregation and rendering.
Method Summary | |
---|---|
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 renderingJobs)
Wait for all rendering jobs in the collection to finish successfully or otherwise. |
Method Detail |
---|
void start()
void stop()
int getQueuedJobsCount()
int getAvailableJobsCount()
int getRunningJobsCount()
void process(RenderingJob job)
job
- void waitForRenderingJobs(List renderingJobs)
renderingJobs
- the Collection of rendering job objects to wait for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |