| org.apache.jetspeed.aggregator.WorkerMonitor
All known Subclasses: org.apache.jetspeed.aggregator.impl.CommonjWorkerMonitorImpl, org.apache.jetspeed.aggregator.impl.WorkerMonitorImpl,
WorkerMonitor | public interface WorkerMonitor (Code) | | The Worker Monitor is a thread manager and monitor for async portlet aggregation
and rendering.
author: David Sean Taylor version: $Id: $ |
getAvailableJobsCount | int getAvailableJobsCount()(Code) | | Returns a snapshot count of the available jobs
available jobs count |
getQueuedJobsCount | int getQueuedJobsCount()(Code) | | Retrieves a snapshot of job count in the waiting (backlogged) queue
snapshot count of waiting jobs |
getRunningJobsCount | int getRunningJobsCount()(Code) | | Returns a snapshot count of the jobs currently running
snapshot count of running jobs |
process | void process(RenderingJob job)(Code) | | Start processing a job, assign it to a worker thread.
Parameters: job - |
start | void start()(Code) | | Start processing the worker monitor
|
stop | void stop()(Code) | | Stop processing the worker monitor
Finish all jobs
|
waitForRenderingJobs | public void waitForRenderingJobs(List renderingJobs)(Code) | | Wait for all rendering jobs in the collection to finish successfully or otherwise.
Parameters: renderingJobs - the Collection of rendering job objects to wait for. |
|
|