|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.jcr.JobStatusProviderImpl
@Deprecated @Service(value=JobStatusProvider.class) public class JobStatusProviderImpl
An service to query jobs.
Field Summary |
---|
Fields inherited from interface org.apache.sling.event.JobStatusProvider |
---|
PROPERTY_EVENT_ID |
Constructor Summary | |
---|---|
JobStatusProviderImpl()
Deprecated. |
Method Summary | |
---|---|
void |
cancelJob(String jobId)
Deprecated. |
void |
cancelJob(String topic,
String jobId)
Deprecated. |
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. |
Collection<org.osgi.service.event.Event> |
getCurrentJobs(String topic)
Deprecated. |
Collection<org.osgi.service.event.Event> |
getCurrentJobs(String topic,
Map<String,Object>... filterProps)
Deprecated. |
Collection<org.osgi.service.event.Event> |
getScheduledJobs(String topic)
Deprecated. |
Collection<org.osgi.service.event.Event> |
getScheduledJobs(String topic,
Map<String,Object>... filterProps)
Deprecated. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobStatusProviderImpl()
Method Detail |
---|
public boolean removeJob(String topic, String jobId)
JobStatusProvider
removeJob
in interface JobStatusProvider
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.JobStatusProvider.removeJob(java.lang.String, java.lang.String)
public boolean removeJob(String jobId)
JobStatusProvider
removeJob
in interface JobStatusProvider
jobId
- The unique identifer as found in the property JobStatusProvider.PROPERTY_EVENT_ID
.
true
if the job could be cancelled or does not exist anymore.
false
otherwise.JobStatusProvider.removeJob(java.lang.String)
public void forceRemoveJob(String topic, String jobId)
JobStatusProvider
JobStatusProvider.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.
forceRemoveJob
in interface JobStatusProvider
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
.JobStatusProvider.forceRemoveJob(java.lang.String, java.lang.String)
public void forceRemoveJob(String jobId)
JobStatusProvider
JobStatusProvider.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!
forceRemoveJob
in interface JobStatusProvider
jobId
- The unique identifer as found in the property JobStatusProvider.PROPERTY_EVENT_ID
.JobStatusProvider.forceRemoveJob(java.lang.String)
public void wakeUpJobQueue(String jobQueueName)
JobStatusProvider
wakeUpJobQueue
in interface JobStatusProvider
jobQueueName
- The name of the queue.JobStatusProvider.wakeUpJobQueue(java.lang.String)
public JobsIterator queryAllJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
JobStatusProvider.queryScheduledJobs(String, Map...)
and JobStatusProvider.queryCurrentJobs(String, Map...)
queryAllJobs
in interface JobStatusProvider
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).
JobStatusProvider.queryAllJobs(String, Map...)
public JobsIterator queryCurrentJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
queryCurrentJobs
in interface JobStatusProvider
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).
JobStatusProvider.queryCurrentJobs(String, Map...)
public JobsIterator queryScheduledJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
queryScheduledJobs
in interface JobStatusProvider
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).
JobStatusProvider.queryScheduledJobs(String, Map...)
@Deprecated public Collection<org.osgi.service.event.Event> getCurrentJobs(String topic)
JobStatusProvider
getCurrentJobs
in interface JobStatusProvider
topic
- Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.
JobStatusProvider.getCurrentJobs(java.lang.String)
@Deprecated public Collection<org.osgi.service.event.Event> getScheduledJobs(String topic)
JobStatusProvider
getScheduledJobs
in interface JobStatusProvider
topic
- Topic can be used as a filter, if it is non-null, only jobs with this topic will be returned.
JobStatusProvider.getScheduledJobs(java.lang.String)
@Deprecated public Collection<org.osgi.service.event.Event> getCurrentJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
getCurrentJobs
in interface JobStatusProvider
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).
JobStatusProvider.getCurrentJobs(java.lang.String, java.util.Map...)
@Deprecated public Collection<org.osgi.service.event.Event> getScheduledJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
getScheduledJobs
in interface JobStatusProvider
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).
JobStatusProvider.getScheduledJobs(java.lang.String, java.util.Map...)
@Deprecated public Collection<org.osgi.service.event.Event> getAllJobs(String topic, Map<String,Object>... filterProps)
JobStatusProvider
JobStatusProvider.getScheduledJobs(String, Map...)
and JobStatusProvider.getCurrentJobs(String, Map...)
getAllJobs
in interface JobStatusProvider
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).
JobStatusProvider.getAllJobs(java.lang.String, java.util.Map...)
@Deprecated public void cancelJob(String topic, String jobId)
JobStatusProvider
cancelJob
in interface JobStatusProvider
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
.JobStatusProvider.cancelJob(java.lang.String, java.lang.String)
@Deprecated public void cancelJob(String jobId)
JobStatusProvider
cancelJob
in interface JobStatusProvider
jobId
- The unique identifer as found in the property JobStatusProvider.PROPERTY_EVENT_ID
.JobStatusProvider.cancelJob(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |