Class ConfigHistoryService

  • All Implemented Interfaces:
    com.floragunn.searchguard.modules.state.ComponentStateProvider

    public class ConfigHistoryService
    extends Object
    implements com.floragunn.searchguard.modules.state.ComponentStateProvider
    • Field Detail

      • INDEX_NAME

        public static final org.elasticsearch.common.settings.Setting<String> INDEX_NAME
      • CACHE_TTL

        public static final org.elasticsearch.common.settings.Setting<Integer> CACHE_TTL
      • CACHE_MAX_SIZE

        public static final org.elasticsearch.common.settings.Setting<Integer> CACHE_MAX_SIZE
      • MODEL_CACHE_TTL

        public static final org.elasticsearch.common.settings.Setting<Integer> MODEL_CACHE_TTL
      • MODEL_CACHE_MAX_SIZE

        public static final org.elasticsearch.common.settings.Setting<Integer> MODEL_CACHE_MAX_SIZE
    • Constructor Detail

      • ConfigHistoryService

        public ConfigHistoryService​(com.floragunn.searchguard.configuration.ConfigurationRepository configurationRepository,
                                    com.floragunn.searchguard.sgconf.StaticSgConfig staticSgConfig,
                                    com.floragunn.searchguard.support.PrivilegedConfigClient privilegedConfigClient,
                                    com.floragunn.searchguard.configuration.ProtectedConfigIndexService protectedConfigIndexService,
                                    com.floragunn.searchguard.sgconf.DynamicConfigFactory dynamicConfigFactory,
                                    org.elasticsearch.common.settings.Settings settings)
    • Method Detail

      • getCurrentConfigSnapshot

        public ConfigSnapshot getCurrentConfigSnapshot()
      • getCurrentConfigSnapshot

        public ConfigSnapshot getCurrentConfigSnapshot​(com.floragunn.searchguard.sgconf.impl.CType first,
                                                       com.floragunn.searchguard.sgconf.impl.CType... rest)
      • getCurrentConfigSnapshot

        public ConfigSnapshot getCurrentConfigSnapshot​(Set<com.floragunn.searchguard.sgconf.impl.CType> configurationTypes)
      • getConfigModelForSnapshot

        public com.floragunn.searchguard.sgconf.ConfigModel getConfigModelForSnapshot​(ConfigSnapshot configSnapshot)
      • parseConfig

        public com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<?> parseConfig​(org.elasticsearch.action.get.GetResponse singleGetResponse)
      • getIndexName

        public String getIndexName()
      • getCurrentConfigModel

        public com.floragunn.searchguard.sgconf.ConfigModel getCurrentConfigModel()
      • getComponentState

        public com.floragunn.searchguard.modules.state.ComponentState getComponentState()
        Specified by:
        getComponentState in interface com.floragunn.searchguard.modules.state.ComponentStateProvider