org.geotools.gce.imagemosaic
Class ImageMosaicConfigHandler

Object
  extended by ImageMosaicConfigHandler

public class ImageMosaicConfigHandler
extends Object

This class is in responsible for creating and managing the catalog and the configuration of the mosaic

Author:
Carlo Cancellieri - GeoSolutions SAS

Constructor Summary
ImageMosaicConfigHandler(CatalogBuilderConfiguration configuration, ImageMosaicEventHandlers eventHandler)
          Default constructor
 
Method Summary
protected  boolean coverageExists(String coverageName)
          Check whether the specified coverage already exist in the reader.
 void dispose()
           
 GranuleCatalog getCatalog()
           
 Map<String,MosaicConfigurationBean> getConfigurations()
           
 ImageMosaicReader getParentReader()
           
 List<PropertiesCollector> getPropertiesCollectors()
           
 CatalogBuilderConfiguration getRunConfiguration()
           
 boolean getStop()
           
 boolean isUseExistingSchema()
           
 void reset()
          Perform proper clean up.
 void setParentReader(ImageMosaicReader parentReader)
           
 void stop()
           
 void updateConfiguration(GridCoverage2DReader coverageReader, String inputCoverageName, File fileBeingProcessed, int fileIndex, double numFiles, DefaultTransaction transaction)
          Use the passed coverageReader to create or update the all the needed configurations
It not responsible of the passed coverageReader which should be disposed outside (in the caller).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMosaicConfigHandler

public ImageMosaicConfigHandler(CatalogBuilderConfiguration configuration,
                                ImageMosaicEventHandlers eventHandler)
Default constructor

Throws:
IllegalArgumentException
Method Detail

reset

public void reset()
Perform proper clean up.

Make sure to call this method when you are not running the ImageMosaicConfigHandler or bad things can happen. If it is running, please stop it first.


getStop

public boolean getStop()

stop

public void stop()

coverageExists

protected boolean coverageExists(String coverageName)
                          throws IOException
Check whether the specified coverage already exist in the reader. This allows to get the rasterManager associated with that coverage instead of creating a new one.

Parameters:
coverageName - the name of the coverage to be searched
Returns:
true in case that coverage already exists
Throws:
IOException

updateConfiguration

public void updateConfiguration(GridCoverage2DReader coverageReader,
                                String inputCoverageName,
                                File fileBeingProcessed,
                                int fileIndex,
                                double numFiles,
                                DefaultTransaction transaction)
                         throws IOException
Use the passed coverageReader to create or update the all the needed configurations
It not responsible of the passed coverageReader which should be disposed outside (in the caller).

Parameters:
coverageReader -
inputCoverageName -
fileBeingProcessed -
fileIndex -
numFiles -
transaction -
Throws:
IOException

dispose

public void dispose()

getConfigurations

public Map<String,MosaicConfigurationBean> getConfigurations()

getCatalog

public GranuleCatalog getCatalog()

getRunConfiguration

public CatalogBuilderConfiguration getRunConfiguration()

getParentReader

public ImageMosaicReader getParentReader()

setParentReader

public void setParentReader(ImageMosaicReader parentReader)

getPropertiesCollectors

public List<PropertiesCollector> getPropertiesCollectors()

isUseExistingSchema

public boolean isUseExistingSchema()


Copyright © 1996-2014 Geotools. All Rights Reserved.