arina-ielchiieva commented on a change in pull request #1988: DRILL-7590:
Refactor plugin registry
URL: https://github.com/apache/drill/pull/1988#discussion_r383960703
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/options/SystemOptionManager.java
##########
@@ -43,36 +43,32 @@
import java.util.stream.StreamSupport;
/**
- * <p> {@link OptionManager} that holds options within {@link
org.apache.drill.exec.server.DrillbitContext}.
+ * <p>{@link OptionManager} that holds options within {@link
org.apache.drill.exec.server.DrillbitContext}.
* Only one instance of this class exists per drillbit. Options set at the
system level affect the entire system and
* persist between restarts.
- * </p>
- *
- * <p> All the system options are externalized into conf file. While adding a
new system option
- * a validator should be added and the default value for the option should be
set in
- * the conf files(example : drill-module.conf) under the namespace
drill.exec.options.
- * </p>
- *
- * <p>
- * The SystemOptionManager loads all the validators and the default values
for the options are
- * fetched from the config. The validators are populated with the default
values fetched from
- * the config. If the option is not set in the conf files config option is
missing exception
- * will be thrown.
- * </p>
- *
- * <p>
- * If the option is set using ALTER, the value that is set will be returned.
Else the default value
- * that is loaded into validator from the config will be returned.
- * </p>
+ * </p><p>
+ * All the system options are externalized into conf file. While adding a new
system option
+ * a validator should be added and the default value for the option should be
set in
+ * the conf files(example : drill-module.conf) under the namespace
drill.exec.options.
+ * </p><p>
+ * The SystemOptionManager loads all the validators and the default values for
the options are
+ * fetched from the config. The validators are populated with the default
values fetched from
+ * the config. If the option is not set in the conf files config option is
missing exception
+ * will be thrown.
+ * </p><p>
+ If the option is set using ALTER, the value that is set will be returned.
Else the default value
+ * that is loaded into validator from the config will be returned.
+ * </p>
*/
public class SystemOptionManager extends BaseOptionManager implements
AutoCloseable {
private static final org.slf4j.Logger logger =
org.slf4j.LoggerFactory.getLogger(SystemOptionManager.class);
/**
- * Creates all the OptionDefinitions to be registered with the {@link
SystemOptionManager}.
+ * Creates the {@code OptionDefinitions} to be registered with the {@link
SystemOptionManager}.
* @return A map
*/
public static CaseInsensitiveMap<OptionDefinition>
createDefaultOptionDefinitions() {
+ @SuppressWarnings("deprecation")
Review comment:
Should we suppress such warning?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services