|
||||||||||
| 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 JobStatusProvidertopic - 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 JobStatusProviderjobId - 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)
JobStatusProviderJobStatusProvider.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 JobStatusProvidertopic - 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)
JobStatusProviderJobStatusProvider.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 JobStatusProviderjobId - 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 JobStatusProviderjobQueueName - 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)
JobStatusProviderJobStatusProvider.queryScheduledJobs(String, Map...)
and JobStatusProvider.queryCurrentJobs(String, Map...)
queryAllJobs in interface JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProvidertopic - 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)
JobStatusProviderJobStatusProvider.getScheduledJobs(String, Map...)
and JobStatusProvider.getCurrentJobs(String, Map...)
getAllJobs in interface JobStatusProvidertopic - 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 JobStatusProvidertopic - 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 JobStatusProviderjobId - 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 | |||||||||