@Test public void validateDefaultConfiguration() { mConfiguration.validate(); }
@Override public void validate() { if (!getBoolean(PropertyKey.CONF_VALIDATION_ENABLED)) { return; } for (PropertyKey key : keySet()) { Preconditions.checkState( getSource(key).getType() != Source.Type.SITE_PROPERTY || !key.isIgnoredSiteProperty(), "%s is not accepted in alluxio-site.properties, " + "and must be specified as a JVM property. " + "If no JVM property is present, Alluxio will use default value '%s'.", key.getName(), key.getDefaultValue()); if (PropertyKey.isDeprecated(key) && getSource(key).compareTo(Source.DEFAULT) != 0) { LOG.warn("{} is deprecated. Please avoid using this key in the future. {}", key.getName(), PropertyKey.getDeprecationMessage(key)); } } checkTimeouts(); checkWorkerPorts(); checkUserFileBufferBytes(); checkZkConfiguration(); checkTieredLocality(); checkTieredStorage(); }
InstancedConfiguration implements AlluxioConfiguration { @Override public void validate() { if (!getBoolean(PropertyKey.CONF_VALIDATION_ENABLED)) { return; } for (PropertyKey key : keySet()) { Preconditions.checkState( getSource(key).getType() != Source.Type.SITE_PROPERTY || !key.isIgnoredSiteProperty(), "%s is not accepted in alluxio-site.properties, " + "and must be specified as a JVM property. " + "If no JVM property is present, Alluxio will use default value '%s'.", key.getName(), key.getDefaultValue()); if (PropertyKey.isDeprecated(key) && getSource(key).compareTo(Source.DEFAULT) != 0) { LOG.warn("{} is deprecated. Please avoid using this key in the future. {}", key.getName(), PropertyKey.getDeprecationMessage(key)); } } checkTimeouts(); checkWorkerPorts(); checkUserFileBufferBytes(); checkZkConfiguration(); checkTieredLocality(); checkTieredStorage(); } }
InstancedConfiguration implements AlluxioConfiguration { @Override public void validate() { if (!getBoolean(PropertyKey.CONF_VALIDATION_ENABLED)) { return; } for (PropertyKey key : keySet()) { Preconditions.checkState( getSource(key).getType() != Source.Type.SITE_PROPERTY || !key.isIgnoredSiteProperty(), "%s is not accepted in alluxio-site.properties, " + "and must be specified as a JVM property. " + "If no JVM property is present, Alluxio will use default value '%s'.", key.getName(), key.getDefaultValue()); if (PropertyKey.isDeprecated(key) && getSource(key).compareTo(Source.DEFAULT) != 0) { LOG.warn("{} is deprecated. Please avoid using this key in the future. {}", key.getName(), PropertyKey.getDeprecationMessage(key)); } } checkTimeouts(); checkWorkerPorts(); checkUserFileBufferBytes(); checkZkConfiguration(); checkTieredLocality(); checkTieredStorage(); } InstancedConfiguration(AlluxioProperties properties);  InstancedConfiguration(AlluxioProperties properties, boolean clusterDefaultsLoaded);  InstancedConfiguration(AlluxioConfiguration conf); }
InstancedConfiguration implements AlluxioConfiguration { @Override public void validate() { if (!getBoolean(PropertyKey.CONF_VALIDATION_ENABLED)) { return; } for (PropertyKey key : keySet()) { Preconditions.checkState( getSource(key).getType() != Source.Type.SITE_PROPERTY || !key.isIgnoredSiteProperty(), "%s is not accepted in alluxio-site.properties, " + "and must be specified as a JVM property. " + "If no JVM property is present, Alluxio will use default value '%s'.", key.getName(), key.getDefaultValue()); if (PropertyKey.isDeprecated(key) && getSource(key).compareTo(Source.DEFAULT) != 0) { LOG.warn("{} is deprecated. Please avoid using this key in the future. {}", key.getName(), PropertyKey.getDeprecationMessage(key)); } } checkTimeouts(); checkWorkerPorts(); checkUserFileBufferBytes(); checkZkConfiguration(); checkTieredLocality(); checkTieredStorage(); } 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 void validate() { if (!getBoolean(PropertyKey.CONF_VALIDATION_ENABLED)) { return; } for (PropertyKey key : keySet()) { Preconditions.checkState( getSource(key).getType() != Source.Type.SITE_PROPERTY || !key.isIgnoredSiteProperty(), "%s is not accepted in alluxio-site.properties, " + "and must be specified as a JVM property. " + "If no JVM property is present, Alluxio will use default value '%s'.", key.getName(), key.getDefaultValue()); if (PropertyKey.isDeprecated(key) && getSource(key).compareTo(Source.DEFAULT) != 0) { LOG.warn("{} is deprecated. Please avoid using this key in the future. {}", key.getName(), PropertyKey.getDeprecationMessage(key)); } } checkTimeouts(); checkWorkerPorts(); checkUserFileBufferBytes(); checkZkConfiguration(); checkTieredLocality(); checkTieredStorage(); } 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();  }