Package com.lucidworks.apollo.config
Class ConfigurationComponent
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
com.lucidworks.apollo.config.ConfigurationComponent
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringstatic final Stringprotected static final com.google.common.base.Splitterstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key, boolean defaultValue) getCollectionFromSignalsCollection(String signalsCollection) intgetProperty(String key) getSearchLogDocIdFieldName(String collection) getSearchLogDocIdLimit(String collection) getSearchLogsCollectionName(String collection) intintintintgetSolrSignalAggrCollection(String collection) Return the name of the aggregated signals collection.getSolrSignalCollection(String collection) Return the name of the raw signals collection.intintbooleanReturns whether JavaScript isolated mode is enabled.booleanbooleanbooleanvoidsetManagedModeEnabled(boolean managedModeEnabled) booleanbooleanMethods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Field Details
-
DEFAULT_DELIMITER
- See Also:
-
defaultSplitter
protected static final com.google.common.base.Splitter defaultSplitter -
MANAGED_MODE_KEY
- See Also:
-
APP_VERSION
- See Also:
-
JAVASCRIPT_ISOLATED_MODE
- See Also:
-
SOLR_ZK_CONNECT_KEY
- See Also:
-
ZK_CONNECT_KEY
- See Also:
-
ZK_NAMESPACE_KEY
- See Also:
-
SOLR_ZK_CLIENT_TIMEOUT
- See Also:
-
DEFAULT_SEARCH_LOGS_COLLECTION_SUFFIX
- See Also:
-
USAGE_MONITOR
- See Also:
-
USAGE_MONITOR_TEST_MODE
- See Also:
-
metricsKeyPrefix
- See Also:
-
historyKeyPrefix
- See Also:
-
METRICS_INDEXING_ENABLED
- See Also:
-
SOLR_ZK_CONNECT
- See Also:
-
SOLR_ZK_CONNECT_TIMEOUT
- See Also:
-
SOLR_BUFFER_SIZE
- See Also:
-
SOLR_BUFFER_FLUSH_INTERVAL
- See Also:
-
SOLR_COMMIT_WITHIN
- See Also:
-
SOLR_BUFFER_CONCURRENCY
- See Also:
-
-
Constructor Details
-
ConfigurationComponent
public ConfigurationComponent()
-
-
Method Details
-
getCollectionFromSignalsCollection
-
getSolrSignalAggrCollection
Return the name of the aggregated signals collection. -
getProperty
- Overrides:
getPropertyin classProperties
-
getSolrSignalCollection
Return the name of the raw signals collection. -
getSearchLogsCollectionName
-
isManagedModeEnabled
public boolean isManagedModeEnabled() -
setManagedModeEnabled
public void setManagedModeEnabled(boolean managedModeEnabled) -
usageMonitorEnabled
public boolean usageMonitorEnabled() -
usageMonitorTestMode
public boolean usageMonitorTestMode() -
metricsIndexingEnabled
public boolean metricsIndexingEnabled() -
managedModeEnabled
public boolean managedModeEnabled() -
isJavascriptIsolatedMode
public boolean isJavascriptIsolatedMode()Returns whether JavaScript isolated mode is enabled. This mode prevents scripts from accessing: - Network (HTTP, sockets, URLs) - Environment variables (including K8s environment) - File system - Process execution (Runtime, ProcessBuilder) - Reflection APIs Checked in order: 1. DynamicPropertyFactory (Archaius config) 2. getBoolean() which checks the Properties map and Spring Environment Can be set via: - application.yml: app.javascript.isolated: true - application.properties: app.javascript.isolated=true - Environment variable: APP_JAVASCRIPT_ISOLATED=true - System property: -Dapp.javascript.isolated=true - Archaius configuration -
getSearchLogDocIdFieldName
-
getSearchLogDocIdLimit
-
getBoolean
-
getInt
-
getSolrZKClientTimeout
public int getSolrZKClientTimeout() -
getSolrZkConnectTimeout
public int getSolrZkConnectTimeout() -
getSolrBufferSize
public int getSolrBufferSize() -
getSolrBufferFlushInterval
public int getSolrBufferFlushInterval() -
getSolrCommitWithin
public int getSolrCommitWithin() -
getSolrBufferConcurrency
public int getSolrBufferConcurrency() -
split
-