@Deprecated @ProviderType public interface JobStatusProvider
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_EVENT_ID
Deprecated.
Use
JobUtil.JOB_ID |
Modifier and Type | Method and Description |
---|---|
void |
cancelJob(String jobId)
Deprecated.
Use
removeJob(String) instead. |
void |
cancelJob(String topic,
String jobId)
Deprecated.
Use
removeJob(String, String) instead. |
void |
forceRemoveJob(String jobId)
Deprecated.
Cancel this job.
|
void |
forceRemoveJob(String topic,
String jobId)
Deprecated.
Cancel this job.
|
Collection<org.osgi.service.event.Event> |
getAllJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Use
queryAllJobs(String, Map...) instead. |
Collection<org.osgi.service.event.Event> |
getCurrentJobs(String topic)
Deprecated.
Use
queryCurrentJobs(String, Map...) instead. |
Collection<org.osgi.service.event.Event> |
getCurrentJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Use
queryCurrentJobs(String, Map...) instead. |
Collection<org.osgi.service.event.Event> |
getScheduledJobs(String topic)
Deprecated.
Use
queryScheduledJobs(String, Map...) instead. |
Collection<org.osgi.service.event.Event> |
getScheduledJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Use
queryScheduledJobs(String, Map...) instead. |
JobsIterator |
queryAllJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Return all jobs either running or scheduled.
|
JobsIterator |
queryCurrentJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Return the jobs which are currently in processing.
|
JobsIterator |
queryScheduledJobs(String topic,
Map<String,Object>... filterProps)
Deprecated.
Return a list of currently scheduled jobs.
|
boolean |
removeJob(String jobId)
Deprecated.
Cancel this job.
|
boolean |
removeJob(String topic,
String jobId)
Deprecated.
Cancel this job.
|
void |
wakeUpJobQueue(String jobQueueName)
Deprecated.
Wake up the named job queue.
|
@Deprecated static final String PROPERTY_EVENT_ID
JobUtil.JOB_ID
boolean removeJob(String jobId)
jobId
- The unique identifer as found in the property PROPERTY_EVENT_ID
.true
if the job could be cancelled or does not exist anymore.
false
otherwise.boolean removeJob(String topic, String jobId)
topic
- The job topic as put into the property JobUtil.PROPERTY_JOB_TOPIC
.jobId
- The unique identifer as put into the property JobUtil.PROPERTY_JOB_NAME
.true
if the job could be cancelled or does not exist anymore.
false
otherwise.void forceRemoveJob(String jobId)
removeJob(String)
with the exception that it waits
for a job to finish. The job will be removed when this method returns - however
this method blocks until the job is finished!jobId
- The unique identifer as found in the property PROPERTY_EVENT_ID
.void forceRemoveJob(String topic, String jobId)
removeJob(String, String)
with the exception that it waits
for a job to finish. The job will be removed when this method returns - however
this method blocks until the job is finished!
This method can be used if the topic and the provided job id is known.topic
- The job topic as put into the property JobUtil.PROPERTY_JOB_TOPIC
.jobId
- The unique identifer as put into the property JobUtil.PROPERTY_JOB_NAME
.void wakeUpJobQueue(String jobQueueName)
jobQueueName
- The name of the queue.JobsIterator queryScheduledJobs(String topic, Map<String,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).JobsIterator queryCurrentJobs(String topic, Map<String,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).JobsIterator queryAllJobs(String topic, Map<String,Object>... filterProps)
queryScheduledJobs(String, Map...)
and queryCurrentJobs(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).@Deprecated Collection<org.osgi.service.event.Event> getScheduledJobs(String topic)
queryScheduledJobs(String, Map...)
instead.topic
- Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.@Deprecated Collection<org.osgi.service.event.Event> getCurrentJobs(String topic)
queryCurrentJobs(String, Map...)
instead.topic
- Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.@Deprecated Collection<org.osgi.service.event.Event> getScheduledJobs(String topic, Map<String,Object>... filterProps)
queryScheduledJobs(String, Map...)
instead.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).@Deprecated Collection<org.osgi.service.event.Event> getCurrentJobs(String topic, Map<String,Object>... filterProps)
queryCurrentJobs(String, Map...)
instead.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).@Deprecated Collection<org.osgi.service.event.Event> getAllJobs(String topic, Map<String,Object>... filterProps)
queryAllJobs(String, Map...)
instead.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).@Deprecated void cancelJob(String jobId)
removeJob(String)
instead.jobId
- The unique identifer as found in the property PROPERTY_EVENT_ID
.@Deprecated void cancelJob(String topic, String jobId)
removeJob(String, String)
instead.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
.Copyright © 2015 The Apache Software Foundation. All rights reserved.