Skip to content

Commit

Permalink
Fix controller host / port / protocol CLI option description for admi…
Browse files Browse the repository at this point in the history
…n commands (apache#13237)
  • Loading branch information
yashmayya authored May 28, 2024
1 parent 106f0c5 commit 1b16615
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
public class AddSchemaCommand extends AbstractBaseAdminCommand implements Command {
private static final Logger LOGGER = LoggerFactory.getLogger(AddSchemaCommand.class);

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "port name for controller.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-schemaFile"}, required = true, description = "Path to schema file.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ public class AddTableCommand extends AbstractBaseAdminCommand implements Command
+ " table schema file.")
private String _schemaFile = null;

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number to start the "
+ "controller at.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-update"}, required = false, description = "Update the existing table instead of "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@
public class AddTenantCommand extends AbstractBaseAdminCommand implements Command {
private static final Logger LOGGER = LoggerFactory.getLogger(AddTenantCommand.class);

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false,
description = "Port number to start the controller at.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-name"}, required = true, description = "Name of the tenant to be created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
public class BootstrapTableCommand extends AbstractBaseAdminCommand implements Command {
private static final Logger LOGGER = LoggerFactory.getLogger(BootstrapTableCommand.class.getName());

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "http port for broker.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-dir", "-d", "-directory"}, required = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
public class DeleteSchemaCommand extends AbstractBaseAdminCommand implements Command {
private static final Logger LOGGER = LoggerFactory.getLogger(DeleteSchemaCommand.class);

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "port name for controller.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-schemaName"}, required = true, description = "Schema name.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ public class DeleteTableCommand extends AbstractBaseAdminCommand implements Comm
+ "the cluster setting, then '7d'. Using 0d or -1d will instantly delete segments without retention.")
private String _retention;

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number to start the "
+ "controller at.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-exec"}, required = false, description = "Execute the command.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
public class OperateClusterConfigCommand extends AbstractBaseAdminCommand implements Command {
private static final Logger LOGGER = LoggerFactory.getLogger(OperateClusterConfigCommand.class.getName());

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "http port for controller.")
@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-user"}, required = false, description = "Username for basic auth.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public class UploadSegmentCommand extends AbstractBaseAdminCommand implements Co
private static final Logger LOGGER = LoggerFactory.getLogger(UploadSegmentCommand.class);
private static final String SEGMENT_UPLOADER = "segmentUploader";

@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "host name for controller.")
@CommandLine.Option(names = {"-controllerHost"}, required = false, description = "Host name for controller.")
private String _controllerHost;

@CommandLine.Option(names = {"-controllerPort"}, required = false, description = "Port number for controller.")
private String _controllerPort = DEFAULT_CONTROLLER_PORT;

@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "protocol for controller.")
@CommandLine.Option(names = {"-controllerProtocol"}, required = false, description = "Protocol for controller.")
private String _controllerProtocol = CommonConstants.HTTP_PROTOCOL;

@CommandLine.Option(names = {"-user"}, required = false, description = "Username for basic auth.")
Expand Down

0 comments on commit 1b16615

Please sign in to comment.