Modifier and Type | Field and Description |
---|---|
protected ImageMosaicConfigHandler |
configHandler |
protected ImageMosaicEventHandlers |
eventHandler |
protected Hints |
excludeMosaicHints |
Constructor and Description |
---|
ImageMosaicDirectoryWalker(ImageMosaicConfigHandler catalogHandler,
ImageMosaicEventHandlers eventHandler) |
ImageMosaicDirectoryWalker(ImageMosaicConfigHandler configHandler,
ImageMosaicEventHandlers eventHandler,
IOFileFilter filter)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkFile(File fileBeingProcessed) |
protected boolean |
checkStop() |
void |
closeTransaction() |
void |
commitTransaction() |
int |
getFileIndex() |
int |
getNumFiles() |
boolean |
getStop() |
protected void |
handleFile(File fileBeingProcessed) |
void |
rollbackTransaction() |
void |
run()
run the directory walker
|
void |
setFileIndex(int fileIndex) |
void |
setNumFiles(int numFiles) |
void |
skipFile(String path)
Warn this walker that we skip the provided path
|
void |
startTransaction()
Create a transaction for being used in this walker
|
void |
stop() |
protected final ImageMosaicConfigHandler configHandler
protected final Hints excludeMosaicHints
protected final ImageMosaicEventHandlers eventHandler
public ImageMosaicDirectoryWalker(ImageMosaicConfigHandler configHandler, ImageMosaicEventHandlers eventHandler, IOFileFilter filter)
Sets a filter that can reduce the file the mosaic walker will take into consideration (in a more flexible way than the wildcards)
filter
- IllegalArgumentException
public ImageMosaicDirectoryWalker(ImageMosaicConfigHandler catalogHandler, ImageMosaicEventHandlers eventHandler)
catalogHandler
- eventHandler
- public void run()
public boolean getStop()
public void stop()
protected boolean checkFile(File fileBeingProcessed)
protected void handleFile(File fileBeingProcessed) throws IOException
IOException
public void startTransaction()
public void rollbackTransaction() throws IOException
IOException
public void commitTransaction() throws IOException
IOException
public void closeTransaction()
protected boolean checkStop()
public int getFileIndex()
public int getNumFiles()
public void setFileIndex(int fileIndex)
fileIndex
- the fileIndex to setpublic void setNumFiles(int numFiles)
numFiles
- the numFiles to setpublic void skipFile(String path)
path
- the path to the file to skipCopyright © 1996–2019 Geotools. All rights reserved.