org.wdssii.core
Class Ingestor
java.lang.Object
org.wdssii.core.WDSSIIProgram
org.wdssii.core.Ingestor
- Direct Known Subclasses:
- AbstractAsciiLightningIngest, NetcdfIngest
public abstract class Ingestor
- extends WDSSIIProgram
Abstract class of algorithms
- Author:
- lakshman
Constructor Summary |
protected |
Ingestor()
initializes wdssii |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
inputDir
private String inputDir
filenamePatterns
private String[] filenamePatterns
exitAfterInitialRead
private boolean exitAfterInitialRead
helper
private FamIndexHelper helper
Ingestor
protected Ingestor()
- initializes wdssii
getInputDir
public String getInputDir()
setInputDir
public void setInputDir(String inputDir)
getFilenamePatterns
public String getFilenamePatterns()
setFilenamePatterns
public void setFilenamePatterns(String pattern)
isExitAfterInitialRead
public boolean isExitAfterInitialRead()
setExitAfterInitialRead
public void setExitAfterInitialRead(boolean exitAfterInitialRead)
execute
public void execute()
- Monitor input directory for files, then process them.
- Specified by:
execute
in class WDSSIIProgram
processFiles
private void processFiles(File[] files)
doIngest
protected abstract void doIngest(File f)
- Read the file, do the conversion, write the output and notify the index.