public class DiscoveryEnvUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DISCOVERY_PROPERTIES_FILE |
static String |
DISCOVERY_PROPERTIES_FOLDER |
static String |
DISCOVERY_ROOT_DEFAULT |
static String |
DISCOVERY_ROOT_DIR |
static String |
DISCOVERY_ROOT_TEST_DEFAULT |
protected String |
discoveryPropertiesFilePath |
protected String |
discoveryPropertyFolderPath |
protected String |
rootFolderPath |
static String |
SOLR_CONFIG_FOLDER |
static String |
SOLR_DATA_FOLDER |
protected String |
solrConfigFolderPath |
protected String |
solrDataFolderPath |
static String |
UTF8 |
Constructor and Description |
---|
DiscoveryEnvUtil() |
Modifier and Type | Method and Description |
---|---|
String |
getDiscoveryHome(String defaultDiscoveryHome)
Logic for determining the correct home directory for discovery.
|
String |
getDiscoveryPropertiesFilePath() |
String |
getDiscoveryPropertyFolderPath() |
protected List<ResourceItem> |
getResourceItems()
Return a list of
ResourceItem objects representing resources required by discovery |
String |
getRootFolderPath() |
String |
getSolrConfigDirectoryPath() |
String |
getSolrConfigFolderPath() |
String |
getSolrDataFolderPath() |
protected void |
handleSolrConfig() |
protected void |
initEnv(String defaultDiscoveryHome)
Configure the home directory for discovery.
|
void |
initEnvironment()
Initializes environment for normal use of discovery.
|
void |
initEnvironmentCommon(String docStoreRoot)
Initializes an environment for discovery at the given root folder.
|
void |
initPathValues(String discoveryRoot) |
void |
initTestEnvironment()
Initializes environment for testing.
|
void |
logEnvironment() |
void |
printEnvironment() |
void |
setDiscoveryPropertiesFilePath(String discoveryPropertiesFilePath) |
void |
setDiscoveryPropertyFolderPath(String discoveryPropertyFolderPath) |
void |
setRootFolderPath(String rootFolderPath) |
void |
setSolrConfigFolderPath(String solrConfigFolderPath) |
void |
setSolrDataFolderPath(String solrDataFolderPath) |
public static final String DISCOVERY_ROOT_DIR
public static final String DISCOVERY_ROOT_DEFAULT
public static final String DISCOVERY_ROOT_TEST_DEFAULT
public static final String SOLR_CONFIG_FOLDER
public static final String SOLR_DATA_FOLDER
public static final String DISCOVERY_PROPERTIES_FOLDER
public static final String DISCOVERY_PROPERTIES_FILE
public static final String UTF8
protected String rootFolderPath
protected String solrConfigFolderPath
protected String solrDataFolderPath
protected String discoveryPropertyFolderPath
protected String discoveryPropertiesFilePath
public DiscoveryEnvUtil()
public String getSolrConfigDirectoryPath()
public void initEnvironment()
public void initTestEnvironment()
protected void initEnv(String defaultDiscoveryHome)
ole.discover.home
is guaranteed to be set.public String getDiscoveryHome(String defaultDiscoveryHome)
public void initPathValues(String discoveryRoot)
public void initEnvironmentCommon(String docStoreRoot)
protected void handleSolrConfig()
protected List<ResourceItem> getResourceItems()
ResourceItem
objects representing resources required by discoverypublic void printEnvironment()
public void logEnvironment()
public String getRootFolderPath()
public void setRootFolderPath(String rootFolderPath)
public String getSolrConfigFolderPath()
public void setSolrConfigFolderPath(String solrConfigFolderPath)
public String getSolrDataFolderPath()
public void setSolrDataFolderPath(String solrDataFolderPath)
public String getDiscoveryPropertyFolderPath()
public void setDiscoveryPropertyFolderPath(String discoveryPropertyFolderPath)
public String getDiscoveryPropertiesFilePath()
public void setDiscoveryPropertiesFilePath(String discoveryPropertiesFilePath)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.