Author: cziegeler Date: Tue Feb 26 12:49:43 2013 New Revision: 1450155 URL: http://svn.apache.org/r1450155 Log: Typo
Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobManager.java sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobUtil.java Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobManager.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobManager.java?rev=1450155&r1=1450154&r2=1450155&view=diff ============================================================================== --- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobManager.java (original) +++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobManager.java Tue Feb 26 12:49:43 2013 @@ -102,8 +102,8 @@ public interface JobManager { /** * Cancel this job. - * Cancelling a job might fail if the job is currently in processing. - * @param jobId The unique identifer as found in the property {@link JobUtil#JOB_ID}. + * Canceling a job might fail if the job is currently in processing. + * @param jobId The unique identifier as found in the property {@link JobUtil#JOB_ID}. * @return <code>true</code> if the job could be cancelled or does not exist anymore. * <code>false</code> otherwise. */ @@ -114,7 +114,7 @@ public interface JobManager { * This method acts like {@link #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! - * @param jobId The unique identifer as found in the property {@link JobUtil#JOB_ID}. + * @param jobId The unique identifier as found in the property {@link JobUtil#JOB_ID}. */ void forceRemoveJob(String jobId); @@ -127,7 +127,7 @@ public interface JobManager { /** * Is job processing enabled? - * It is possible to completly turn off job processing. + * It is possible to completely turn off job processing. */ boolean isJobProcessingEnabled(); } Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobUtil.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobUtil.java?rev=1450155&r1=1450154&r2=1450155&view=diff ============================================================================== --- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobUtil.java (original) +++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/jobs/JobUtil.java Tue Feb 26 12:49:43 2013 @@ -110,7 +110,7 @@ public abstract class JobUtil { public static final String TOPIC_JOB = "org/apache/sling/event/job"; /** - * This is a unique identifer which can be used to cancel the job. + * This is a unique identifier which can be used to cancel the job. */ public static final String JOB_ID = "slingevent:eventId"; @@ -121,14 +121,14 @@ public abstract class JobUtil { /** Asynchronous notification event when a job is started. * The property {@link #PROPERTY_NOTIFICATION_JOB} contains the job event and the * property {@link org.osgi.service.event.EventConstants#TIMESTAMP} contains the - * timestamp of the event (as a Long). + * time stamp of the event (as a Long). */ public static final String TOPIC_JOB_STARTED = "org/apache/sling/event/notification/job/START"; /** Asynchronous notification event when a job is finished. * The property {@link #PROPERTY_NOTIFICATION_JOB} contains the job event and the * property {@link org.osgi.service.event.EventConstants#TIMESTAMP} contains the - * timestamp of the event (as a Long). + * time stamp of the event (as a Long). */ public static final String TOPIC_JOB_FINISHED = "org/apache/sling/event/notification/job/FINISHED"; @@ -136,7 +136,7 @@ public abstract class JobUtil { * If a job execution fails, it is rescheduled for another try. * The property {@link #PROPERTY_NOTIFICATION_JOB} contains the job event and the * property {@link org.osgi.service.event.EventConstants#TIMESTAMP} contains the - * timestamp of the event (as a Long). + * time stamp of the event (as a Long). */ public static final String TOPIC_JOB_FAILED = "org/apache/sling/event/notification/job/FAILED"; @@ -144,7 +144,7 @@ public abstract class JobUtil { * If a job execution is cancelled it is not rescheduled. * The property {@link #PROPERTY_NOTIFICATION_JOB} contains the job event and the * property {@link org.osgi.service.event.EventConstants#TIMESTAMP} contains the - * timestamp of the event (as a Long). + * time stamp of the event (as a Long). */ public static final String TOPIC_JOB_CANCELLED = "org/apache/sling/event/notification/job/CANCELLED"; @@ -250,6 +250,7 @@ public abstract class JobUtil { /** * @see java.lang.Runnable#run() */ + @Override public void run() { final Thread currentThread = Thread.currentThread(); // update priority and name