public class CurationServiceConfig extends Object implements CuratorConfMetKeys
CurationService by reading the parameters out of the
context.xml file, doing a
PathUtils.replaceEnvVariables(String) on each property in the
context.xml. This allows you to specify environment variables using the
traditional CAS syntax of:
[VAR_NAME], e.g., [CAS_CURATOR_HOME]/some/other/pathThe configuration parameters are read once upon loading the instance of this object.
CATALOG_FACTORY_CLASS, CRAWLER_CONF_FILE, DEFAULT_TRANSFER_FACTORY, FM_PROPS, FM_URL, MET_AREA_PATH, MET_EXTENSION, MET_EXTRACTOR_CONF_UPLOAD_PATH, POLICY_UPLOAD_PATH, STAGING_AREA_PATH| Modifier and Type | Method and Description |
|---|---|
String |
getCrawlerConfFile() |
String |
getDefaultTransferFactory() |
XmlRpcFileManagerClient |
getFileManagerClient() |
String |
getFileMgrProps() |
String |
getFileMgrURL() |
static CurationServiceConfig |
getInstance(javax.servlet.ServletConfig conf)
Gets a singleton static instance of the global
CurationServiceConfig for the CAS Curator Webapp. |
String |
getMetAreaPath() |
String |
getMetExtension() |
String |
getMetExtrConfUploadPath() |
String |
getParameter(String name)
Gets a property from the CAS Curator config without calling
PathUtils.replaceEnvVariables(String). |
String |
getPolicyUploadPath() |
String |
getStagingAreaPath() |
public static CurationServiceConfig getInstance(javax.servlet.ServletConfig conf)
CurationServiceConfig for the CAS Curator Webapp.conf - The ServletConfig read on startup of the webapp. This is
typically specified in a context.xml file, but can
also be specified in web.xml.CurationServiceConfig.InstantiationException - If there is any error constructing the config.public String getMetAreaPath()
public String getMetExtension()
public String getStagingAreaPath()
public String getFileMgrURL()
public XmlRpcFileManagerClient getFileManagerClient()
XmlRpcFileManagerClient built from the CAS curator
property filemgr.url.public String getMetExtrConfUploadPath()
public String getCrawlerConfFile()
public String getPolicyUploadPath()
public String getDefaultTransferFactory()
DataTransferFactory classname.public String getParameter(String name)
PathUtils.replaceEnvVariables(String).name - The name of the parameter to return.public String getFileMgrProps()
Copyright © 1999–2017 Apache OODT. All rights reserved.