public void run() {
try {
workerForCommonTaskList.shutdown();
workerForHostSpecificTaskList.shutdown();
workerForCommonTaskList.awaitTermination(1, TimeUnit.MINUTES);
workerForHostSpecificTaskList.awaitTermination(1, TimeUnit.MINUTES);
System.out.println("Activity Workers Exited.");
}
catch (InterruptedException e) {
e.printStackTrace();
}