org.wdssii.core
Class Ingestor

java.lang.Object
  extended by org.wdssii.core.WDSSIIProgram
      extended by org.wdssii.core.Ingestor
Direct Known Subclasses:
AbstractAsciiLightningIngest, NetcdfIngest

public abstract class Ingestor
extends WDSSIIProgram

Abstract class of algorithms

Author:
lakshman

Nested Class Summary
private  class Ingestor.FilenamePatternMatcher
           
 
Field Summary
private  boolean exitAfterInitialRead
           
private  String[] filenamePatterns
           
private  FamIndexHelper helper
           
private  String inputDir
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
protected Ingestor()
          initializes wdssii
 
Method Summary
protected abstract  void doIngest(File f)
          Read the file, do the conversion, write the output and notify the index.
 void execute()
          Monitor input directory for files, then process them.
 String getFilenamePatterns()
           
 String getInputDir()
           
 boolean isExitAfterInitialRead()
           
private  void processFiles(File[] files)
           
 void setExitAfterInitialRead(boolean exitAfterInitialRead)
           
 void setFilenamePatterns(String pattern)
           
 void setInputDir(String inputDir)
           
 
Methods inherited from class org.wdssii.core.WDSSIIProgram
getOutputDir, getPropertiesFromCommandLine, getSubTypeForElevation, isRealTime, printUsage, setOutputDir, setRealTime, setup, setup, setupAndExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Ingestor

protected Ingestor()
initializes wdssii

Method Detail

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.