@Deprecated public abstract class JobUtil extends Object
Job
class is an utility class for
creating and processing jobs.Modifier and Type | Class and Description |
---|---|
static class |
JobUtil.JobPriority
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static String |
JOB_ID
Deprecated.
- Use the new
Job interface instead. |
static String |
NOTIFICATION_PROPERTY_JOB_ID
Deprecated.
Use NotificationConstants#NOTIFICATION_PROPERTY_JOB_ID
|
static String |
NOTIFICATION_PROPERTY_JOB_NAME
Deprecated.
|
static String |
NOTIFICATION_PROPERTY_JOB_TOPIC
Deprecated.
Use NotificationConstants#NOTIFICATION_PROPERTY_JOB_TOPIC
|
static String |
PROPERTY_JOB_APPLICATION
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_CREATED
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_CREATED_APPLICATION
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_NAME
Deprecated.
- Jobs should be started via
JobManager.addJob(String, String, java.util.Map) |
static String |
PROPERTY_JOB_PARALLEL
Deprecated.
|
static String |
PROPERTY_JOB_PRIORITY
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_QUEUE_NAME
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_QUEUE_ORDERED
Deprecated.
|
static String |
PROPERTY_JOB_RETRIES
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_RETRY_COUNT
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_RETRY_DELAY
Deprecated.
- Use the new
Job interface instead. |
static String |
PROPERTY_JOB_RUN_LOCAL
Deprecated.
|
static String |
PROPERTY_JOB_TOPIC
Deprecated.
- Jobs should be started via
JobManager.addJob(String, String, java.util.Map) |
static String |
PROPERTY_NOTIFICATION_JOB
Deprecated.
|
static String |
TOPIC_JOB
Deprecated.
- Use the new
JobManager.addJob(String, String, java.util.Map) method instead. |
static String |
TOPIC_JOB_CANCELLED
Deprecated.
Use NotificationConstants#TOPIC_JOB_CANCELLED
|
static String |
TOPIC_JOB_FAILED
Deprecated.
Use NotificationConstants#TOPIC_JOB_FAILED
|
static String |
TOPIC_JOB_FINISHED
Deprecated.
Use NotificationConstants#TOPIC_JOB_FINISHED
|
static String |
TOPIC_JOB_STARTED
Deprecated.
Use NotificationConstants#TOPIC_JOB_STARTED
|
Modifier and Type | Method and Description |
---|---|
static boolean |
acknowledgeJob(org.osgi.service.event.Event job)
Deprecated.
- Use the new
JobConsumer interface instead. |
static void |
finishedJob(org.osgi.service.event.Event job)
Deprecated.
- Use the new
JobConsumer interface instead. |
static Calendar |
getJobCreated(org.osgi.service.event.Event job)
Deprecated.
- Use the new
Job interface instead. |
static boolean |
isJobEvent(org.osgi.service.event.Event event)
Deprecated.
- Use the new
Job interface instead. |
static void |
processJob(org.osgi.service.event.Event job,
JobProcessor processor)
Deprecated.
- Use the new
JobConsumer interface instead. |
static boolean |
rescheduleJob(org.osgi.service.event.Event job)
Deprecated.
- Use the new
JobConsumer interface instead. |
@Deprecated public static final String PROPERTY_JOB_TOPIC
JobManager.addJob(String, String, java.util.Map)
@Deprecated public static final String PROPERTY_JOB_NAME
JobManager.addJob(String, String, java.util.Map)
@Deprecated public static final String PROPERTY_JOB_PARALLEL
@Deprecated public static final String PROPERTY_JOB_RUN_LOCAL
@Deprecated public static final String PROPERTY_JOB_RETRY_COUNT
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_RETRIES
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_RETRY_DELAY
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_QUEUE_NAME
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_QUEUE_ORDERED
@Deprecated public static final String PROPERTY_JOB_PRIORITY
Job
interface instead.processJob(Event, JobProcessor)
method.
If another way of executing the job is used, it is up to the processor to ensure
the job priority is taken into account.
For possible values see JobUtil.JobPriority
.
If this property is set by the client creating the job it's value is ignored@Deprecated public static final String PROPERTY_JOB_CREATED
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_CREATED_APPLICATION
Job
interface instead.@Deprecated public static final String PROPERTY_JOB_APPLICATION
Job
interface instead.@Deprecated public static final String TOPIC_JOB
JobManager.addJob(String, String, java.util.Map)
method instead.@Deprecated public static final String JOB_ID
Job
interface instead.@Deprecated public static final String TOPIC_JOB_STARTED
@Deprecated public static final String TOPIC_JOB_FINISHED
@Deprecated public static final String TOPIC_JOB_FAILED
@Deprecated public static final String TOPIC_JOB_CANCELLED
@Deprecated public static final String PROPERTY_NOTIFICATION_JOB
@Deprecated public static final String NOTIFICATION_PROPERTY_JOB_TOPIC
@Deprecated public static final String NOTIFICATION_PROPERTY_JOB_NAME
@Deprecated public static final String NOTIFICATION_PROPERTY_JOB_ID
@Deprecated public static boolean isJobEvent(org.osgi.service.event.Event event)
Job
interface instead.PROPERTY_JOB_TOPIC
property.event
- The event to check.true>
if this is a job event.@Deprecated public static boolean acknowledgeJob(org.osgi.service.event.Event job)
JobConsumer
interface instead.false
this means someone else is already
processing this job, and the caller should not process the event anymore.true
if the acknowledge could be sentIllegalArgumentException
- If the event is a job event but does not have a notifier context.@Deprecated public static void finishedJob(org.osgi.service.event.Event job)
JobConsumer
interface instead.IllegalArgumentException
- If the event is a job event but does not have a notifier context.@Deprecated public static boolean rescheduleJob(org.osgi.service.event.Event job)
JobConsumer
interface instead.true
if the job has been rescheduled, false
otherwise.IllegalArgumentException
- If the event is a job event but does not have a notifier context.@Deprecated public static void processJob(org.osgi.service.event.Event job, JobProcessor processor)
JobConsumer
interface instead.IllegalArgumentException
- If the event is a job event but does not have a notifier context.@Deprecated public static Calendar getJobCreated(org.osgi.service.event.Event job)
Job
interface instead.job
- The job eventnull
if this is not a job event.Copyright © 2014 The Apache Software Foundation. All rights reserved.