|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.Utility
public abstract class Utility
Field Summary | |
---|---|
static String |
PROPERTY_LOCK_CREATED
|
static String |
PROPERTY_LOCK_CREATED_APP
|
static String |
PROPERTY_TIME
Event property containing the time for job start and job finished events. |
static String |
RESOURCE_TYPE_LOCK
|
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
static String |
checkJobTopic(Object jobTopic)
Check the job topic. |
static void |
sendNotification(org.osgi.service.event.EventAdmin eventAdmin,
String eventTopic,
Job job,
Long time)
Helper method for sending the notification events. |
static void |
sendNotification(org.osgi.service.event.EventAdmin eventAdmin,
String eventTopic,
String jobTopic,
String jobName,
Map<String,Object> jobProperties,
Long time)
Helper method for sending the notification events. |
static org.osgi.service.event.Event |
toEvent(Job job)
Create an event from a job |
static String |
toString(Job job)
Improved toString method for a job. |
static String |
toString(String jobTopic,
String name,
Map<String,Object> properties)
Improved toString method for a job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_LOCK_CREATED
public static final String PROPERTY_LOCK_CREATED_APP
public static final String RESOURCE_TYPE_LOCK
public static final String PROPERTY_TIME
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static String checkJobTopic(Object jobTopic)
null
if the topic is correct, otherwise an error description is returnedpublic static void sendNotification(org.osgi.service.event.EventAdmin eventAdmin, String eventTopic, String jobTopic, String jobName, Map<String,Object> jobProperties, Long time)
public static void sendNotification(org.osgi.service.event.EventAdmin eventAdmin, String eventTopic, Job job, Long time)
public static org.osgi.service.event.Event toEvent(Job job)
job
- The job
public static String toString(String jobTopic, String name, Map<String,Object> properties)
public static String toString(Job job)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |