@Test public void sitePropertiesLoadedNotInTest() throws Exception { Properties props = new Properties(); props.setProperty(PropertyKey.LOGGER_TYPE.toString(), "TEST_LOGGER"); File propsFile = mFolder.newFile(Constants.SITE_PROPERTIES); props.store(new FileOutputStream(propsFile), "ignored header"); HashMap<String, String> sysProps = new HashMap<>(); sysProps.put(PropertyKey.LOGGER_TYPE.toString(), null); sysProps.put(PropertyKey.SITE_CONF_DIR.toString(), mFolder.getRoot().getAbsolutePath()); sysProps.put(PropertyKey.TEST_MODE.toString(), "false"); try (Closeable p = new SystemPropertyRule(sysProps).toResource()) { resetConf(); assertEquals("TEST_LOGGER", mConfiguration.get(PropertyKey.LOGGER_TYPE)); } }
@Override public String get(PropertyKey key) { return get(key, ConfigurationValueOptions.defaults()); }
InstancedConfiguration implements AlluxioConfiguration { @Override public String get(PropertyKey key) { return get(key, ConfigurationValueOptions.defaults()); } }
InstancedConfiguration implements AlluxioConfiguration { @Override public String get(PropertyKey key) { return get(key, ConfigurationValueOptions.defaults()); } InstancedConfiguration(AlluxioProperties properties);  InstancedConfiguration(AlluxioProperties properties, boolean clusterDefaultsLoaded);  InstancedConfiguration(AlluxioConfiguration conf); }
InstancedConfiguration implements AlluxioConfiguration { @Override public String get(PropertyKey key) { return get(key, ConfigurationValueOptions.defaults()); } InstancedConfiguration(AlluxioProperties properties);  InstancedConfiguration(AlluxioProperties properties, boolean clusterDefaultsLoaded);  InstancedConfiguration(AlluxioConfiguration conf); static InstancedConfiguration defaults(); AlluxioProperties copyProperties(); @Override String get(PropertyKey key); @Override String get(PropertyKey key, ConfigurationValueOptions options); @Override boolean isSet(PropertyKey key); @Override boolean isSetByUser(PropertyKey key); void set(PropertyKey key, Object value); void set(@Nonnull PropertyKey key, @Nonnull Object value, @Nonnull Source source); void unset(PropertyKey key); void merge(Map<?, ?> properties, Source source); @Override Set<PropertyKey> keySet(); @Override Set<PropertyKey> userKeySet(); @Override int getInt(PropertyKey key); @Override long getLong(PropertyKey key); @Override double getDouble(PropertyKey key); @Override float getFloat(PropertyKey key); @Override boolean getBoolean(PropertyKey key); @Override List<String> getList(PropertyKey key, String delimiter); @Override T getEnum(PropertyKey key, Class<T> enumType); @Override long getBytes(PropertyKey key); @Override long getMs(PropertyKey key); @Override Duration getDuration(PropertyKey key); @Override Class<T> getClass(PropertyKey key); @Override Map<String, String> getNestedProperties(PropertyKey prefixKey); @Override Source getSource(PropertyKey key); @Override Map<String, String> toMap(ConfigurationValueOptions opts); @Override void validate(); @Override boolean clusterDefaultsLoaded(); @Override String hash(); }
InstancedConfiguration implements AlluxioConfiguration { @Override public String get(PropertyKey key) { return get(key, ConfigurationValueOptions.defaults()); } InstancedConfiguration(AlluxioProperties properties);  InstancedConfiguration(AlluxioProperties properties, boolean clusterDefaultsLoaded);  InstancedConfiguration(AlluxioConfiguration conf); static InstancedConfiguration defaults(); AlluxioProperties copyProperties(); @Override String get(PropertyKey key); @Override String get(PropertyKey key, ConfigurationValueOptions options); @Override boolean isSet(PropertyKey key); @Override boolean isSetByUser(PropertyKey key); void set(PropertyKey key, Object value); void set(@Nonnull PropertyKey key, @Nonnull Object value, @Nonnull Source source); void unset(PropertyKey key); void merge(Map<?, ?> properties, Source source); @Override Set<PropertyKey> keySet(); @Override Set<PropertyKey> userKeySet(); @Override int getInt(PropertyKey key); @Override long getLong(PropertyKey key); @Override double getDouble(PropertyKey key); @Override float getFloat(PropertyKey key); @Override boolean getBoolean(PropertyKey key); @Override List<String> getList(PropertyKey key, String delimiter); @Override T getEnum(PropertyKey key, Class<T> enumType); @Override long getBytes(PropertyKey key); @Override long getMs(PropertyKey key); @Override Duration getDuration(PropertyKey key); @Override Class<T> getClass(PropertyKey key); @Override Map<String, String> getNestedProperties(PropertyKey prefixKey); @Override Source getSource(PropertyKey key); @Override Map<String, String> toMap(ConfigurationValueOptions opts); @Override void validate(); @Override boolean clusterDefaultsLoaded(); @Override String hash();  }