org.apache.oodt.cas.pushpull.config
Class Config

java.lang.Object
  extended by org.apache.oodt.cas.pushpull.config.Config
All Implemented Interfaces:
ConfigMetKeys

public class Config
extends Object
implements ConfigMetKeys

This class will parse a java .properties file for FileRetrievalSystem so that information can be easily accessed through getter methods.

Author:
bfoster

Field Summary
 
Fields inherited from interface org.apache.oodt.cas.pushpull.config.ConfigMetKeys
ALLOW_ONLY_DEFINED_TYPES, CACHE_FACTORY_CLASS, DATA_FILE_BASE_STAGING_AREA, EXTERNAL_PROPERTIES_FILES, FILE_RET_SYSTEM_MAX_ALLOWED_FAIL_DOWNLOADS, FILE_RET_SYSTEM_REC_THREAD_COUNT, INGESTER_CLASS, INGESTER_DATA_TRANSFER, INGESTER_FM_URL, MET_FILE_EXT, MET_LIST_TO_PRINT, NO_FM_SPECIFIED, PARSER_INFO_FILES, PROTOCOL_FACTORY_INFO_FILES, PROTOCOL_PAGE_SIZE, PROTOCOL_TIMEOUT_MS, STAGING_AREA_PREFIX, TYPE_DETECTION_FILE, USE_TRACKER, WRITE_MET_FILE
 
Constructor Summary
Config()
          Constructor
 
Method Summary
 Config clone()
           
 File getBaseStagingArea()
           
 URL getFmUrl()
           
 org.apache.oodt.cas.filemgr.ingest.Ingester getIngester()
           
 String[] getListOfMetadataToOutput()
           
 int getMaxFailedDownloads()
           
 String getMetFileExtension()
           
 ParserInfo getParserInfo()
           
 String getProductTypeDetectionFile()
           
 ProtocolInfo getProtocolInfo()
           
 int getRecommendedThreadCount()
           
 boolean getWriteMetFile()
           
 void loadConfigFile(File configFile)
          Opens the configuration file and adds its properties to System properties
 boolean onlyDownloadDefinedTypes()
           
 void setBaseStagingArea(File baseStagingArea)
           
 void setFmUrl(URL fmUrl)
           
 void setIngester(org.apache.oodt.cas.filemgr.ingest.Ingester ingester)
           
 void setMaxAllowedFailedDownloads(int max)
           
 void setOnlyDownloadDefinedTypes(boolean onlyDefinedTypes)
           
 void setProductTypeDetectionFile(String filePath)
           
 void setProtocolInfo(ProtocolInfo pi)
           
 void setRecommendedThreadCount(int count)
           
 void setTempInfoFileExtension(String extension)
           
 void setUseTracker(boolean useTracker)
           
 void setWriteMetFile(boolean writeMetFile)
           
 boolean useTracker()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config()
Constructor

Parameters:
fileName - Name of the configuration file to parse
Method Detail

loadConfigFile

public void loadConfigFile(File configFile)
                    throws ConfigException
Opens the configuration file and adds its properties to System properties

Throws:
ConfigException

setProtocolInfo

public void setProtocolInfo(ProtocolInfo pi)

setUseTracker

public void setUseTracker(boolean useTracker)

setIngester

public void setIngester(org.apache.oodt.cas.filemgr.ingest.Ingester ingester)

setFmUrl

public void setFmUrl(URL fmUrl)

setTempInfoFileExtension

public void setTempInfoFileExtension(String extension)

setRecommendedThreadCount

public void setRecommendedThreadCount(int count)

setMaxAllowedFailedDownloads

public void setMaxAllowedFailedDownloads(int max)

setOnlyDownloadDefinedTypes

public void setOnlyDownloadDefinedTypes(boolean onlyDefinedTypes)

setBaseStagingArea

public void setBaseStagingArea(File baseStagingArea)

setProductTypeDetectionFile

public void setProductTypeDetectionFile(String filePath)

setWriteMetFile

public void setWriteMetFile(boolean writeMetFile)

getProtocolInfo

public ProtocolInfo getProtocolInfo()

getIngester

public org.apache.oodt.cas.filemgr.ingest.Ingester getIngester()

getFmUrl

public URL getFmUrl()

useTracker

public boolean useTracker()

getMetFileExtension

public String getMetFileExtension()

getProductTypeDetectionFile

public String getProductTypeDetectionFile()

getRecommendedThreadCount

public int getRecommendedThreadCount()

getMaxFailedDownloads

public int getMaxFailedDownloads()

onlyDownloadDefinedTypes

public boolean onlyDownloadDefinedTypes()

getListOfMetadataToOutput

public String[] getListOfMetadataToOutput()

getParserInfo

public ParserInfo getParserInfo()

getBaseStagingArea

public File getBaseStagingArea()

getWriteMetFile

public boolean getWriteMetFile()

clone

public Config clone()
Overrides:
clone in class Object


Copyright © 1999-2011 Apache Incubator. All Rights Reserved.