org.gcube.application.enm.service.concurrent
Class JobExecutionPool

java.lang.Object
  extended by 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
           
 
Method Summary
static JobExecutionPool get()
          Get the singleton instance of the thread pool.
 void shutdownAndAwaitTermination()
           
 void start()
           
 void submit(GenericJob job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.gcube.common.core.utils.logging.GCUBELog logger
Method Detail

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.