org.gcube.application.enm.service.concurrent
Class JobExecutionPool
java.lang.Object
org.gcube.application.enm.service.concurrent.JobExecutionPool
public class JobExecutionPool
- extends Object
Provides a pool of threads with a fixed number of workers.
- Author:
- Erik Torres
|
Field Summary |
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.gcube.common.core.utils.logging.GCUBELog logger
get
public static JobExecutionPool get()
- Get the singleton instance of the thread pool.
- Returns:
- The singleton instance.
start
public void start()
shutdownAndAwaitTermination
public final void shutdownAndAwaitTermination()
submit
public void submit(GenericJob job)
Copyright © 2012. All Rights Reserved.