Refine search
@Config("node-scheduler.max-pending-splits-per-task") @LegacyConfig({"node-scheduler.max-pending-splits-per-node-per-task", "node-scheduler.max-pending-splits-per-node-per-stage"}) public NodeSchedulerConfig setMaxPendingSplitsPerTask(int maxPendingSplitsPerTask) { this.maxPendingSplitsPerTask = maxPendingSplitsPerTask; return this; }
@LegacyConfig("replacedValue") public void setValue(String value) { this.value = value; } }
if (config.value().isEmpty()) { problems.addError("@Config method [%s] annotation has an empty value", configMethod.toGenericString()); isValid = false; if (legacyConfig.value().length == 0) { problems.addError("@LegacyConfig method [%s] annotation has an empty list", configMethod.toGenericString()); isValid = false; if (!legacyConfig.replacedBy().isEmpty()) { problems.addError("@Config method [%s] has annotation claiming to be replaced by another property ('%s')", configMethod.toGenericString(), legacyConfig.replacedBy()); isValid = false; for (String arrayEntry : legacyConfig.value()) { if (arrayEntry == null || arrayEntry.isEmpty()) { problems.addError("@LegacyConfig method [%s] annotation contains null or empty value", configMethod.toGenericString()); isValid = false; else if (arrayEntry.equals(config.value())) { problems.addError("@Config property name '%s' appears in @LegacyConfig annotation for method [%s]", config.value(), configMethod.toGenericString()); isValid = false;
for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass); && method.getAnnotation(LegacyConfig.class).replacedBy().equals(propertyName)) { for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass);
@LegacyConfig("replacedValue") public String getValue() { return value; }
if (config.value().isEmpty()) { problems.addError("@Config method [%s] annotation has an empty value", configMethod.toGenericString()); isValid = false; if (legacyConfig.value().length == 0) { problems.addError("@LegacyConfig method [%s] annotation has an empty list", configMethod.toGenericString()); isValid = false; if (!legacyConfig.replacedBy().isEmpty()) { problems.addError("@Config method [%s] has annotation claiming to be replaced by another property ('%s')", configMethod.toGenericString(), legacyConfig.replacedBy()); isValid = false; for (String arrayEntry : legacyConfig.value()) { if (arrayEntry == null || arrayEntry.isEmpty()) { problems.addError("@LegacyConfig method [%s] annotation contains null or empty value", configMethod.toGenericString()); isValid = false; else if (arrayEntry.equals(config.value())) { problems.addError("@Config property name '%s' appears in @LegacyConfig annotation for method [%s]", config.value(), configMethod.toGenericString()); isValid = false;
for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass); && method.getAnnotation(LegacyConfig.class).replacedBy().equals(propertyName)) { for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass);
@Config("hive.dfs.domain-socket-path") @LegacyConfig("dfs.domain-socket-path") public HiveClientConfig setDomainSocketPath(String domainSocketPath) { this.domainSocketPath = domainSocketPath; return this; }
@LegacyConfig("replacedValue") public void setValue(String value) { this.value = value; } }
if (config.value().isEmpty()) { problems.addError("@Config method [%s] annotation has an empty value", configMethod.toGenericString()); isValid = false; if (legacyConfig.value().length == 0) { problems.addError("@LegacyConfig method [%s] annotation has an empty list", configMethod.toGenericString()); isValid = false; if (!legacyConfig.replacedBy().isEmpty()) { problems.addError("@Config method [%s] has annotation claiming to be replaced by another property ('%s')", configMethod.toGenericString(), legacyConfig.replacedBy()); isValid = false; for (String arrayEntry : legacyConfig.value()) { if (arrayEntry == null || arrayEntry.isEmpty()) { problems.addError("@LegacyConfig method [%s] annotation contains null or empty value", configMethod.toGenericString()); isValid = false; else if (arrayEntry.equals(config.value())) { problems.addError("@Config property name '%s' appears in @LegacyConfig annotation for method [%s]", config.value(), configMethod.toGenericString()); isValid = false;
for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass); && method.getAnnotation(LegacyConfig.class).replacedBy().equals(propertyName)) { for (String property : method.getAnnotation(LegacyConfig.class).value()) { if (defunctConfig.contains(property)) { problems.addError("@LegacyConfig property '%s' on method [%s] is defunct on class [%s]", property, method, configClass);
@LegacyConfig("query.max-age") @Config("query.min-expire-age") public QueryManagerConfig setMinQueryExpireAge(Duration minQueryExpireAge) { this.minQueryExpireAge = minQueryExpireAge; return this; }
@LegacyConfig("replacedValue") public String getValue() { return value; }
@LegacyConfig("plugin.config-dir") @Config("catalog.config-dir") public StaticCatalogStoreConfig setCatalogConfigurationDir(File dir) { this.catalogConfigurationDir = dir; return this; }
@LegacyConfig("replacedValue") public String getValue() { return value; }
@LegacyConfig("task.verbose-stats") @Config("task.per-operator-cpu-timer-enabled") public TaskManagerConfig setPerOperatorCpuTimerEnabled(boolean perOperatorCpuTimerEnabled) { this.perOperatorCpuTimerEnabled = perOperatorCpuTimerEnabled; return this; }
@Deprecated @LegacyConfig(value = "store.ttl-in-ms", replacedBy = "store.ttl") public StoreConfig setTtlInMs(int duration) { return setTtl(new Duration(duration, TimeUnit.MILLISECONDS)); }
@LegacyConfig("task.shard.max-threads") @Config("task.max-worker-threads") public TaskManagerConfig setMaxWorkerThreads(int maxWorkerThreads) { this.maxWorkerThreads = maxWorkerThreads; return this; }
@LegacyConfig("replacedValue") public void setValue(int value) { this.value = Integer.toString(value); } }
@ConfigDescription("Username for control cluster") @Config("control.username-override") @LegacyConfig("control.username") public VerifierConfig setControlUsernameOverride(String controlUsernameOverride) { this.controlUsernameOverride = controlUsernameOverride; return this; }