Modifier and Type | Field and Description |
---|---|
protected ImageMosaicConfigHandler |
configHandler |
protected int |
elementIndex
index of the element being processed
|
protected ImageMosaicEventHandlers |
eventHandler |
protected int |
numElements
Number of elements to process.
|
protected boolean |
stop
Proper way to stop a thread is not by calling Thread.stop() but by using a shared variable
that can be checked in order to notify a terminating condition.
|
protected DefaultTransaction |
transaction |
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 |
checkStop() |
void |
closeTransaction() |
void |
commitTransaction() |
ImageMosaicConfigHandler |
getConfigHandler() |
int |
getElementIndex() |
ImageMosaicEventHandlers |
getEventHandler() |
int |
getNumElements() |
boolean |
getStop() |
DefaultTransaction |
getTransaction() |
void |
rollbackTransaction() |
void |
run()
run the directory walker
|
void |
setElementIndex(int elementIndex) |
void |
setNumElements(int numElements) |
void |
skip(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 DefaultTransaction transaction
protected volatile boolean stop
protected final ImageMosaicConfigHandler configHandler
protected final ImageMosaicEventHandlers eventHandler
protected int elementIndex
protected int numElements
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)
public ImageMosaicDirectoryWalker(ImageMosaicConfigHandler catalogHandler, ImageMosaicEventHandlers eventHandler)
public void run()
public ImageMosaicConfigHandler getConfigHandler()
public ImageMosaicEventHandlers getEventHandler()
public DefaultTransaction getTransaction()
public boolean getStop()
public void stop()
public void startTransaction()
public void rollbackTransaction() throws IOException
IOException
public void commitTransaction() throws IOException
IOException
public void closeTransaction()
protected boolean checkStop()
public int getElementIndex()
public int getNumElements()
public void setElementIndex(int elementIndex)
elementIndex
- the elementIndex to setpublic void setNumElements(int numElements)
numElements
- the numElements to setpublic void skip(String path)
path
- the path to the file to skipCopyright © 1996–2023 Geotools. All rights reserved.