From 34f141c1144dac37248cf404835248413218627e Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 27 Feb 2012 14:58:24 -0600 Subject: Refactored JobsScheduler. The JobsScheduler has been modified to stop all jobs on shutdown. This is done by setting a flag in each job instead of stopping the job thread abruptly. Long running jobs should check this flag periodically and then exit gracefully. None of the existing jobs need to do this since they do not run very long. Other threads that run background services have been converted into daemons such that they will terminate automatically when the JVM exits. Ticket #73 --- pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java') diff --git a/pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java b/pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java index adddc9755..775845ca7 100644 --- a/pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java +++ b/pki/base/common/src/com/netscape/cms/jobs/RequestInQueueJob.java @@ -213,6 +213,6 @@ public class RequestInQueueJob extends AJobBase * @return String array of configuration parameter names. */ public String[] getConfigParams() { - return (mConfigParams); + return mConfigParams; } } -- cgit