public class ImageMosaicConfigHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected GranuleCatalog |
catalog |
Constructor and Description |
---|
ImageMosaicConfigHandler(CatalogBuilderConfiguration configuration,
ImageMosaicEventHandlers eventHandler)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected GranuleCatalog |
buildCatalog() |
protected boolean |
coverageExists(String coverageName)
Check whether the specified coverage already exist in the reader.
|
void |
dispose() |
ImageReaderSpi |
getCachedReaderSPI() |
GranuleCatalog |
getCatalog() |
Map<String,MosaicConfigurationBean> |
getConfigurations() |
List<GranuleAcceptor> |
getGranuleAcceptors() |
ImageMosaicReader |
getParentReader() |
List<PropertiesCollector> |
getPropertiesCollectors() |
RasterManager |
getRasterManagerForTargetCoverage(String targetCoverageName) |
CatalogBuilderConfiguration |
getRunConfiguration() |
boolean |
getStop() |
String |
getTargetCoverageName(GridCoverage2DReader inputCoverageReader,
String inputCoverageName)
Get the name of the target coverage for a given reader.
|
boolean |
isUseExistingSchema() |
void |
reset()
Perform proper clean up.
|
void |
setCachedReaderSPI(ImageReaderSpi cachedReaderSPI) |
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). |
protected GranuleCatalog catalog
public ImageMosaicConfigHandler(CatalogBuilderConfiguration configuration, ImageMosaicEventHandlers eventHandler)
IllegalArgumentException
public void reset()
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.
public boolean getStop()
public void stop()
protected GranuleCatalog buildCatalog() throws IOException
IOException
protected boolean coverageExists(String coverageName) throws IOException
coverageName
- the name of the coverage to be searchedtrue
in case that coverage already existsIOException
public void updateConfiguration(GridCoverage2DReader coverageReader, String inputCoverageName, File fileBeingProcessed, int fileIndex, double numFiles, DefaultTransaction transaction) throws IOException, GranuleHandlingException, NoSuchAuthorityCodeException, FactoryException, TransformException
coverageReader
- inputCoverageName
- fileBeingProcessed
- fileIndex
- numFiles
- transaction
- IOException
FactoryException
NoSuchAuthorityCodeException
TransformException
GranuleHandlingException
public String getTargetCoverageName(GridCoverage2DReader inputCoverageReader, String inputCoverageName)
inputCoverageReader
- the coverage being added to the indexinputCoverageName
- the name of the input coveragepublic void dispose()
public Map<String,MosaicConfigurationBean> getConfigurations()
public GranuleCatalog getCatalog()
public CatalogBuilderConfiguration getRunConfiguration()
public ImageMosaicReader getParentReader()
public void setParentReader(ImageMosaicReader parentReader)
public List<PropertiesCollector> getPropertiesCollectors()
public boolean isUseExistingSchema()
public ImageReaderSpi getCachedReaderSPI()
public void setCachedReaderSPI(ImageReaderSpi cachedReaderSPI)
public List<GranuleAcceptor> getGranuleAcceptors()
public RasterManager getRasterManagerForTargetCoverage(String targetCoverageName)
Copyright © 1996–2019 Geotools. All rights reserved.