@Override public Set<String> getKeys() { return fallback.getKeys(); }
void loadJvmMetrics(){ final Config config = this.config.getConfig(JVM_METRICS); for (String key : config.getKeys()) { if ( config.getBoolean( key ) ) { jvmMetrics.get(key).accept(key); } } }
private Map<String, DataSource> startAndCacheConfiguredDataSources() { final Map<String, DataSource> cachedDatasources = new HashMap<>(); final Config dataSources = readDataSources(); for ( String confKey : dataSources.getKeys() ) { final Config config = dataSources.getConfig(confKey); final DataSource dataSource = defaultDataSourceFactory.newDataSource(confKey, config); cachedDatasources.put( confKey, dataSource ); } return cachedDatasources; }
private void setSocketOptions(final Builder builder) { Config socketOptions = undertowConfig.getConfig( "server.undertow.socket-options" ); for ( String key : socketOptions.getKeys() ) { ConfigurableOption option = getConfigOption( key, socketOptions.getObject(key) ); if ( option != null ) { log.info( " " + option.getOption() + ": " + option.getValue() ); builder.setSocketOption(option.getOption(), option.getValue()); } } } }
private void setServerOptions(final Builder builder) { Config serverOptions = undertowConfig.getConfig( "server-options" ); for ( String key : serverOptions.getKeys() ) { ConfigurableOption option = getConfigOption( key, serverOptions.getObject(key) ); if ( option != null ) { log.info( " " + option.getOption() + ": " + option.getValue() ); builder.setServerOption(option.getOption(), option.getValue()); } } }