|
||||||||||
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(java.lang.String jobId)
Deprecated. |
void |
cancelJob(java.lang.String topic,
java.lang.String jobId)
Deprecated. |
void |
forceRemoveJob(java.lang.String jobId)
Deprecated. Cancel this job. |
void |
forceRemoveJob(java.lang.String topic,
java.lang.String jobId)
Deprecated. 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)
Deprecated. |
java.util.Collection<org.osgi.service.event.Event> |
getCurrentJobs(java.lang.String topic)
Deprecated. |
java.util.Collection<org.osgi.service.event.Event> |
getCurrentJobs(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.Object>... filterProps)
Deprecated. |
java.util.Collection<org.osgi.service.event.Event> |
getScheduledJobs(java.lang.String topic)
Deprecated. |
java.util.Collection<org.osgi.service.event.Event> |
getScheduledJobs(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.Object>... filterProps)
Deprecated. |
JobsIterator |
queryAllJobs(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.Object>... filterProps)
Deprecated. Return all jobs either running or scheduled. |
JobsIterator |
queryCurrentJobs(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.Object>... filterProps)
Deprecated. Return the jobs which are currently in processing. |
JobsIterator |
queryScheduledJobs(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.Object>... filterProps)
Deprecated. Return a list of currently scheduled jobs. |
boolean |
removeJob(java.lang.String jobId)
Deprecated. Cancel this job. |
boolean |
removeJob(java.lang.String topic,
java.lang.String jobId)
Deprecated. Cancel this job. |
void |
wakeUpJobQueue(java.lang.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(java.lang.String topic, java.lang.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(java.lang.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(java.lang.String topic, java.lang.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(java.lang.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(java.lang.String jobQueueName)
JobStatusProvider
wakeUpJobQueue
in interface JobStatusProvider
jobQueueName
- The name of the queue.JobStatusProvider.wakeUpJobQueue(java.lang.String)
public JobsIterator queryAllJobs(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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 java.util.Collection<org.osgi.service.event.Event> getCurrentJobs(java.lang.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 java.util.Collection<org.osgi.service.event.Event> getScheduledJobs(java.lang.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 java.util.Collection<org.osgi.service.event.Event> getCurrentJobs(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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 java.util.Collection<org.osgi.service.event.Event> getScheduledJobs(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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 java.util.Collection<org.osgi.service.event.Event> getAllJobs(java.lang.String topic, java.util.Map<java.lang.String,java.lang.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(java.lang.String topic, java.lang.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(java.lang.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 |