insensa.inforeader
Class CInfoReaderThreadPool

java.lang.Object
  extended by insensa.inforeader.CInfoReaderThreadPool

public class CInfoReaderThreadPool
extends java.lang.Object


Field Summary
private  DependencyChecker depChecker
           
private  java.util.concurrent.ExecutorService exeService
           
private  java.util.List<java.lang.Runnable> threadList
           
 
Constructor Summary
CInfoReaderThreadPool(DependencyChecker depChecker)
           
 
Method Summary
 void addInfoThread(java.lang.Runnable threadObject)
           
 void executeThread(CRasterFileInformation rasterFile, InfoReader iReader, WorkerStatusList workerStatusList)
           
 void executeThreads(CRasterFileInformation rasterFile, java.util.List<InfoReader> iReader, WorkerStatusList workerStatusList)
           
 void executeThreads(CRasterFileInformation rasterFile, WorkerStatusList workerStatusList)
           
private  java.util.List<java.lang.Runnable> getRunnableDepList(CRasterFileInformation rasterFile, InfoReader iReader)
           
 void removeInfoReader(InfoReader iReader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exeService

private java.util.concurrent.ExecutorService exeService

threadList

private java.util.List<java.lang.Runnable> threadList

depChecker

private DependencyChecker depChecker
Constructor Detail

CInfoReaderThreadPool

public CInfoReaderThreadPool(DependencyChecker depChecker)
Parameters:
depChecker -
Method Detail

addInfoThread

public void addInfoThread(java.lang.Runnable threadObject)
Parameters:
threadObject -

executeThread

public void executeThread(CRasterFileInformation rasterFile,
                          InfoReader iReader,
                          WorkerStatusList workerStatusList)
                   throws java.io.IOException
Parameters:
rasterFile -
iReader -
workerStatusList -
Throws:
java.io.IOException

executeThreads

public void executeThreads(CRasterFileInformation rasterFile,
                           java.util.List<InfoReader> iReader,
                           WorkerStatusList workerStatusList)
                    throws java.io.IOException
Parameters:
rasterFile -
iReader -
workerStatusList -
Throws:
java.io.IOException

executeThreads

public void executeThreads(CRasterFileInformation rasterFile,
                           WorkerStatusList workerStatusList)
                    throws java.io.IOException
Parameters:
rasterFile -
workerStatusList -
Throws:
java.io.IOException

getRunnableDepList

private java.util.List<java.lang.Runnable> getRunnableDepList(CRasterFileInformation rasterFile,
                                                              InfoReader iReader)
Parameters:
rasterFile -
iReader -
Returns:

removeInfoReader

public void removeInfoReader(InfoReader iReader)
                      throws java.io.IOException
Parameters:
iReader -
Throws:
java.io.IOException