| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobStatusProvider
This service provides the current job processing status.
| Field Summary | |
|---|---|
| static java.lang.String | PROPERTY_EVENT_IDThis is a unique identifer which can be used to cancel the job. | 
| Method Summary | |
|---|---|
|  void | cancelJob(java.lang.String jobId)Cancel this job. | 
|  void | cancelJob(java.lang.String topic,
          java.lang.String jobId)Cancel this job. | 
|  java.util.Collection<org.osgi.service.event.Event> | getAllJobs(java.lang.String topic,
           java.util.Map<java.lang.String,java.lang.Object>... filterProps)Return all jobs either running or scheduled. | 
|  java.util.Collection<org.osgi.service.event.Event> | getCurrentJobs(java.lang.String topic)Return the jobs which are currently in processing. | 
|  java.util.Collection<org.osgi.service.event.Event> | getCurrentJobs(java.lang.String topic,
               java.util.Map<java.lang.String,java.lang.Object>... filterProps)Return the jobs which are currently in processing. | 
|  java.util.Collection<org.osgi.service.event.Event> | getScheduledJobs(java.lang.String topic)Return a list of currently schedulded jobs. | 
|  java.util.Collection<org.osgi.service.event.Event> | getScheduledJobs(java.lang.String topic,
                 java.util.Map<java.lang.String,java.lang.Object>... filterProps)Return a list of currently schedulded jobs. | 
|  java.util.Collection<org.osgi.service.event.Event> | scheduledJobs(java.lang.String topic)Deprecated. Use getScheduledJobs(String)instead. | 
|  void | wakeUpJobQueue(java.lang.String jobQueueName)Wake up the named job queue. | 
| Field Detail | 
|---|
static final java.lang.String PROPERTY_EVENT_ID
| Method Detail | 
|---|
@Deprecated java.util.Collection<org.osgi.service.event.Event> scheduledJobs(java.lang.String topic)
getScheduledJobs(String) instead.
java.util.Collection<org.osgi.service.event.Event> getScheduledJobs(java.lang.String topic)
topic - Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.
java.util.Collection<org.osgi.service.event.Event> getCurrentJobs(java.lang.String topic)
topic - Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.
java.util.Collection<org.osgi.service.event.Event> getScheduledJobs(java.lang.String topic,
                                                                    java.util.Map<java.lang.String,java.lang.Object>... filterProps)
topic - Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.filterProps - A list of filter property maps. Each map acts like a template. The searched job
                    must match the template (AND query). By providing several maps, different filters
                    are possible (OR query).
java.util.Collection<org.osgi.service.event.Event> getCurrentJobs(java.lang.String topic,
                                                                  java.util.Map<java.lang.String,java.lang.Object>... filterProps)
topic - Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.filterProps - A list of filter property maps. Each map acts like a template. The searched job
                    must match the template (AND query). By providing several maps, different filters
                    are possible (OR query).
java.util.Collection<org.osgi.service.event.Event> getAllJobs(java.lang.String topic,
                                                              java.util.Map<java.lang.String,java.lang.Object>... filterProps)
getScheduledJobs(String, Map...)
 and getCurrentJobs(String, Map...)
topic - Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.filterProps - A list of filter property maps. Each map acts like a template. The searched job
                    must match the template (AND query). By providing several maps, different filters
                    are possible (OR query).
void cancelJob(java.lang.String jobId)
jobId - The unique identifer as found in the property PROPERTY_EVENT_ID.
void cancelJob(java.lang.String topic,
               java.lang.String jobId)
topic - The job topic as put into the property EventUtil.PROPERTY_JOB_TOPIC.jobId - The unique identifer as put into the property EventUtil.PROPERTY_JOB_ID.void wakeUpJobQueue(java.lang.String jobQueueName)
jobQueueName - The name of the queue.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||