|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.data.config.DataSourceConfigHelper
public class DataSourceConfigHelper
| Field Summary | |
|---|---|
static java.lang.String |
DATA_SOURCE_CONFIG_DIRECTORY
|
| Constructor Summary | |
|---|---|
DataSourceConfigHelper()
|
|
| Method Summary | |
|---|---|
static void |
addDataSourceConfiguration(MDEXState d)
This method adds an MDEXState to the persistence layer and increments the cache version to indicate an update is necessary. |
static java.lang.String |
expandLiferayHomeToken(java.lang.String value)
Expands tokens in a path string representing the data source directory. |
static java.util.Map<java.lang.String,MDEXState> |
getDataSourceConfigurations()
This method returns the currently cached Map of MDEXState's, which are keyed off of their data source id. |
static long |
getDataSourceConfigVersion()
This returns the current version of the data sources |
static java.io.File |
getFileFromPath(java.lang.String path)
|
static void |
incrementDataSourceConfigVersion()
Increases the version of the datasources stored in the database by 1 |
static void |
loadDataSourceConfigurationFromDisk()
Deprecated. |
static void |
removeDataSourceConfiguration(java.lang.String id)
This method removes an MDEXState from the persistence layer and increments the cache version to indicate an update is necessary. |
static void |
resetDataSourceStatusPoller()
Cancel the existing timer and reset from value in FrameworkSettings |
static MDEXState |
testConnection(java.lang.String id)
This method takes a data source id, find's the corresponding MDEX State, and pings the MDEX to see if it is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DATA_SOURCE_CONFIG_DIRECTORY
| Constructor Detail |
|---|
public DataSourceConfigHelper()
| Method Detail |
|---|
public static void resetDataSourceStatusPoller()
public static java.util.Map<java.lang.String,MDEXState> getDataSourceConfigurations()
public static void incrementDataSourceConfigVersion()
public static long getDataSourceConfigVersion()
public static void addDataSourceConfiguration(MDEXState d)
throws DataSourceConfigUpdateException
d -
DataSourceConfigUpdateException
public static void removeDataSourceConfiguration(java.lang.String id)
throws DataSourceConfigUpdateException
id -
DataSourceConfigUpdateExceptionpublic static MDEXState testConnection(java.lang.String id)
id -
public static void loadDataSourceConfigurationFromDisk()
java.io.IOExceptionpublic static java.lang.String expandLiferayHomeToken(java.lang.String value)
value - the tokenized path string
public static java.io.File getFileFromPath(java.lang.String path)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||