@Deprecated public abstract class EventUtil extends Object
EventUtil
class is an utility class for
clustered environments.Modifier and Type | Class and Description |
---|---|
static class |
EventUtil.JobPriority
Deprecated.
Use
JobUtil.JobPriority |
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_APPLICATION
Deprecated.
|
static String |
PROPERTY_DISTRIBUTE
Deprecated.
s
|
static String |
PROPERTY_JOB_ID
Deprecated.
|
static String |
PROPERTY_JOB_PARALLEL
Deprecated.
|
static String |
PROPERTY_JOB_PRIORITY
Deprecated.
|
static String |
PROPERTY_JOB_QUEUE_NAME
Deprecated.
|
static String |
PROPERTY_JOB_QUEUE_ORDERED
Deprecated.
|
static String |
PROPERTY_JOB_RETRIES
Deprecated.
|
static String |
PROPERTY_JOB_RETRY_COUNT
Deprecated.
|
static String |
PROPERTY_JOB_RETRY_DELAY
Deprecated.
|
static String |
PROPERTY_JOB_RUN_LOCAL
Deprecated.
|
static String |
PROPERTY_JOB_TOPIC
Deprecated.
|
static String |
PROPERTY_NOTIFICATION_JOB
Deprecated.
|
static String |
PROPERTY_TIMED_EVENT_DATE
Deprecated.
Use scheduled jobs instead
|
static String |
PROPERTY_TIMED_EVENT_ID
Deprecated.
Use scheduled jobs instead
|
static String |
PROPERTY_TIMED_EVENT_PERIOD
Deprecated.
Use scheduled jobs instead
|
static String |
PROPERTY_TIMED_EVENT_SCHEDULE
Deprecated.
Use scheduled jobs instead
|
static String |
PROPERTY_TIMED_EVENT_TOPIC
Deprecated.
Use scheduled jobs instead
|
static String |
TOPIC_JOB
Deprecated.
|
static String |
TOPIC_JOB_CANCELLED
Deprecated.
|
static String |
TOPIC_JOB_FAILED
Deprecated.
|
static String |
TOPIC_JOB_FINISHED
Deprecated.
|
static String |
TOPIC_JOB_STARTED
Deprecated.
|
static String |
TOPIC_TIMED_EVENT
Deprecated.
Use scheduled jobs instead
|
Constructor and Description |
---|
EventUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
acknowledgeJob(org.osgi.service.event.Event job)
Deprecated.
|
static org.osgi.service.event.Event |
createDistributableEvent(String topic,
Dictionary<String,Object> properties)
Deprecated.
Event senders should rather just directly include the property
PROPERTY_DISTRIBUTE with an empty string value. |
static void |
finishedJob(org.osgi.service.event.Event job)
Deprecated.
Use {link
JobUtil.finishedJob(Event) |
static String |
getApplicationId(org.osgi.service.event.Event event)
Deprecated.
|
static boolean |
isJobEvent(org.osgi.service.event.Event event)
Deprecated.
|
static boolean |
isLocal(org.osgi.service.event.Event event)
Deprecated.
Event handlers should rather filter just for the property
being available (remote) or missing (local)
|
static void |
processJob(org.osgi.service.event.Event job,
JobProcessor processor)
|
static boolean |
rescheduleJob(org.osgi.service.event.Event job)
Deprecated.
|
static boolean |
shouldDistribute(org.osgi.service.event.Event event)
Deprecated.
|
static String |
toString(org.osgi.service.event.Event e)
Deprecated.
The new event admin version provides a better toString() method
|
@Deprecated public static final String PROPERTY_DISTRIBUTE
@Deprecated public static final String PROPERTY_APPLICATION
@Deprecated public static final String PROPERTY_JOB_TOPIC
JobUtil.PROPERTY_JOB_TOPIC
@Deprecated public static final String PROPERTY_JOB_ID
JobUtil.PROPERTY_JOB_NAME
@Deprecated public static final String PROPERTY_JOB_PARALLEL
JobUtil.PROPERTY_JOB_PARALLEL
true
and false
- string value true
and false
- integer value higher than 1 - if this is specified jobs are run in
parallel but never more than the specified number.
We might want to use different values in the future for enhanced
parallel job handling.
This value is only used, if JobUtil.PROPERTY_JOB_QUEUE_NAME
is
specified and the referenced queue is not started yet.@Deprecated public static final String PROPERTY_JOB_RUN_LOCAL
JobUtil.PROPERTY_JOB_RUN_LOCAL
@Deprecated public static final String PROPERTY_JOB_RETRY_COUNT
JobUtil.PROPERTY_JOB_RETRY_COUNT
@Deprecated public static final String PROPERTY_JOB_RETRIES
JobUtil.PROPERTY_JOB_RETRIES
@Deprecated public static final String PROPERTY_JOB_RETRY_DELAY
JobUtil.PROPERTY_JOB_RETRY_DELAY
@Deprecated public static final String PROPERTY_JOB_QUEUE_NAME
JobUtil.PROPERTY_JOB_QUEUE_NAME
JobUtil.PROPERTY_JOB_PARALLEL
with an integer value higher than 1 can be used to specify the maximum number
of parallel jobs for this queue.@Deprecated public static final String PROPERTY_JOB_QUEUE_ORDERED
JobUtil.PROPERTY_JOB_QUEUE_ORDERED
PROPERTY_JOB_QUEUE_NAME
is specified
and the job queue has not been started yet.@Deprecated public static final String PROPERTY_JOB_PRIORITY
JobUtil.PROPERTY_JOB_PRIORITY
JobUtil.processJob(Event, org.apache.sling.event.jobs.JobProcessor)
method.
If another way of executing the job is used, it is up to the client to ensure
the job priority.
For possible values see EventUtil.JobPriority
.@Deprecated public static final String TOPIC_JOB
JobUtil.TOPIC_JOB
@Deprecated public static final String TOPIC_TIMED_EVENT
@Deprecated public static final String PROPERTY_TIMED_EVENT_TOPIC
@Deprecated public static final String PROPERTY_TIMED_EVENT_ID
@Deprecated public static final String PROPERTY_TIMED_EVENT_SCHEDULE
@Deprecated public static final String PROPERTY_TIMED_EVENT_PERIOD
@Deprecated public static final String PROPERTY_TIMED_EVENT_DATE
@Deprecated public static final String TOPIC_JOB_STARTED
JobUtil.TOPIC_JOB_STARTED
PROPERTY_NOTIFICATION_JOB
contains the job event and the
property EventConstants.TIMESTAMP
contains the
timestamp of the event (as a Long).@Deprecated public static final String TOPIC_JOB_FINISHED
JobUtil.TOPIC_JOB_FINISHED
PROPERTY_NOTIFICATION_JOB
contains the job event and the
property EventConstants.TIMESTAMP
contains the
timestamp of the event (as a Long).@Deprecated public static final String TOPIC_JOB_FAILED
JobUtil.TOPIC_JOB_FAILED
PROPERTY_NOTIFICATION_JOB
contains the job event and the
property EventConstants.TIMESTAMP
contains the
timestamp of the event (as a Long).@Deprecated public static final String TOPIC_JOB_CANCELLED
JobUtil.TOPIC_JOB_CANCELLED
PROPERTY_NOTIFICATION_JOB
contains the job event and the
property EventConstants.TIMESTAMP
contains the
timestamp of the event (as a Long).@Deprecated public static final String PROPERTY_NOTIFICATION_JOB
JobUtil.PROPERTY_NOTIFICATION_JOB
@Deprecated public static org.osgi.service.event.Event createDistributableEvent(String topic, Dictionary<String,Object> properties)
PROPERTY_DISTRIBUTE
with an empty string value.topic
- properties
- @Deprecated public static boolean shouldDistribute(org.osgi.service.event.Event event)
event
- true
if the event should be distributed.@Deprecated public static boolean isLocal(org.osgi.service.event.Event event)
event
- true
if this is a local event@Deprecated public static String getApplicationId(org.osgi.service.event.Event event)
event
- @Deprecated public static String toString(org.osgi.service.event.Event e)
@Deprecated public static boolean isJobEvent(org.osgi.service.event.Event event)
JobUtil.isJobEvent(Event)
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)
JobUtil.acknowledgeJob(Event)
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)
JobUtil.finishedJob(Event)
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)
JobUtil.rescheduleJob(Event)
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)
IllegalArgumentException
- If the event is a job event but does not have a notifier context.Copyright © 2015 The Apache Software Foundation. All rights reserved.