Class SettingsProxy

java.lang.Object
de.cxp.ocs.elasticsearch.SettingsProxy

public class SettingsProxy extends Object
  • Constructor Details

    • SettingsProxy

      public SettingsProxy()
  • Method Details

    • get

      public String get(String propertyName)
      Get property from the different "layers" in the following order: - system-properties - environment variable (using property-name in uppercase and dots replaced by _) - properties file - default properties
      Parameters:
      propertyName -
      Returns:
    • get

      public String get(String propertyName, String defaultValue)
    • getConnectionConfig

      public ConnectionConfiguration getConnectionConfig()
    • isIndexEnabled

      public Optional<Boolean> isIndexEnabled(String indexName)
    • getSourceFields

      public List<Field> getSourceFields(String indexName) throws IOException
      Throws:
      IOException
    • getIsDeduplicationEnabled

      public Boolean getIsDeduplicationEnabled(String indexName)
    • getMaxFetchSize

      public int getMaxFetchSize(String indexName)