10-31-2012 09:39 AM
11-02-2012 03:18 AM
(this process includes many jobs run in parallel),
11-02-2012 08:24 AM
11-05-2012 03:00 AM
11-05-2012 06:09 AM
protected void stopExecutingJobs() {
stopJobAcquisitionThread();
// Ask the thread pool to finish and exit
threadPoolExecutor.shutdown();
// Waits for 1 minute to finish all currently executing jobs
try {
if(!threadPoolExecutor.awaitTermination(60L, TimeUnit.SECONDS)) {
log.log(Level.WARNING, "Timeout during shutdown of job executor. "
+ "The current running jobs could not end within 60 seconds after shutdown operation.");
}
} catch (InterruptedException e) {
log.log(Level.WARNING, "Interrupted while shutting down the job executor. ", e);
}
threadPoolExecutor = null;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.