Skip to content
Browse files

Merge pull request #19 from blorenz/master

Correcting Exection to Execution.  Sustains legacy implementations of Exection typo.
  • Loading branch information...
2 parents af2fd45 + 63999f1 commit 07ecde5baa59e20f99c05302c61137617c08fc81 @basejump basejump committed
Showing with 16 additions and 1 deletion.
  1. +16 −1 src/groovy/grails/plugin/quartz2/SimpleJobDetail.groovy
View
17 src/groovy/grails/plugin/quartz2/SimpleJobDetail.groovy
@@ -136,6 +136,13 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
* @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
*/
boolean isConcurrentExectionDisallowed() {
+ return isConcurrentExecutionDisallowed();
+ }
+
+ /**
+ * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
+ */
+ boolean isConcurrentExecutionDisallowed() {
if(!concurrent){
return true
} else{
@@ -144,11 +151,19 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
}
}
+
/**
* @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
*/
void setConcurrentExectionDisallowed(boolean singleThreaded) {
+ setConcurrentExecutionDisallowed(singleThreaded)
+ }
+
+ /**
+ * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
+ */
+ void setConcurrentExecutionDisallowed(boolean singleThreaded) {
concurrent = !singleThreaded
}
@@ -171,7 +186,7 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
@Override
String toString() {
return "JobDetail '${key.group}.${key.name}' : jobClass: '${jobClass?.name}'"
- + " concurrentExectionDisallowed: " + isConcurrentExectionDisallowed()
+ + " concurrentExecutionDisallowed: " + isConcurrentExecutionDisallowed()
+ " persistJobDataAfterExecution: " + isPersistJobDataAfterExecution()
+ " isDurable: " + isDurable() + " requestsRecovers: " + requestsRecovery();
}

0 comments on commit 07ecde5

Please sign in to comment.
Something went wrong with that request. Please try again.