public class JobManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IJobListener listener)
Add a listener for all job events
|
void |
addListener(java.lang.String qualifier,
IJobListener listener)
Add a listener for jobs under the control of a controller identified by qualifier.
|
void |
fireJobAdded(IJobStatus jobStatus)
Notify listeners when a job has been added.
|
void |
fireJobChanged(IJobStatus jobStatus)
Notify listeners when a job has changed.
|
static JobManager |
getInstance() |
IJobStatus |
getJob(java.lang.String controlId,
java.lang.String jobId)
Find a job given the job controller ID and the job ID.
|
IJobStatus[] |
getJobs()
Get all the jobs we know about.
|
void |
removeListener(IJobListener listener)
Remove the job listener.
|
void |
removeListener(java.lang.String qualifier,
IJobListener listener)
Remove the job listener for jobs under the control of a controller identified by qualifier
|
public static JobManager getInstance()
public void addListener(IJobListener listener)
listener - public void addListener(java.lang.String qualifier,
IJobListener listener)
qualifier - listener - public void fireJobAdded(IJobStatus jobStatus)
qualifier - Unique ID for the job managerjobStatus - status of the jobpublic void fireJobChanged(IJobStatus jobStatus)
jobId - ID of job that has changedpublic IJobStatus getJob(java.lang.String controlId, java.lang.String jobId)
public IJobStatus[] getJobs()
public void removeListener(IJobListener listener)
listener - public void removeListener(java.lang.String qualifier,
IJobListener listener)
qualifier - listener - Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.