|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JobPool pools all the job data being loaded by the loader and serves this data when job processors requests for the processing. This interface enables the loader, processor and controller to interact with the pool implementation.
Method Summary | |
void |
cleanup()
Controller calls this method after job processing has been done. |
long |
getLoadedJobDataCount()
Returns the number of job data objects being loaded into the pool. |
java.lang.Object |
getNextJobData()
Gets the next available job data(piece of information) to be processed. |
void |
initialize(JobContext jobContext)
Controller calls this method to initialize the job pool. |
boolean |
loadJobData(java.lang.Object jobData)
Job Loader will use this API to load the job data into the pool. |
Method Detail |
public void initialize(JobContext jobContext)
jobContext
- Context of the job being run.public java.lang.Object getNextJobData()
public boolean loadJobData(java.lang.Object jobData)
jobData
- Job data needs to be processed.public void cleanup()
public long getLoadedJobDataCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |