Search in sources :

Example 1 with IUsageFormatter

use of com.beust.jcommander.IUsageFormatter in project pulsar by apache.

the class CmdTopics method initDeprecatedCommands.

private void initDeprecatedCommands() {
    IUsageFormatter usageFormatter = jcommander.getUsageFormatter();
    if (usageFormatter instanceof CmdUsageFormatter) {
        CmdUsageFormatter cmdUsageFormatter = (CmdUsageFormatter) usageFormatter;
        cmdUsageFormatter.addDeprecatedCommand("enable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("disable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("set-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("remove-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("set-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("remove-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("set-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("get-retention");
        cmdUsageFormatter.addDeprecatedCommand("set-retention");
        cmdUsageFormatter.addDeprecatedCommand("remove-retention");
        cmdUsageFormatter.addDeprecatedCommand("get-backlog-quotas");
        cmdUsageFormatter.addDeprecatedCommand("set-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("remove-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("get-persistence");
        cmdUsageFormatter.addDeprecatedCommand("set-persistence");
        cmdUsageFormatter.addDeprecatedCommand("remove-persistence");
        cmdUsageFormatter.addDeprecatedCommand("get-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("get-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("set-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("remove-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("get-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("set-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("remove-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("get-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("get-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("set-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("get-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-offload-policies");
    }
}
Also used : IUsageFormatter(com.beust.jcommander.IUsageFormatter)

Example 2 with IUsageFormatter

use of com.beust.jcommander.IUsageFormatter in project incubator-pulsar by apache.

the class CmdTopics method initDeprecatedCommands.

private void initDeprecatedCommands() {
    IUsageFormatter usageFormatter = jcommander.getUsageFormatter();
    if (usageFormatter instanceof CmdUsageFormatter) {
        CmdUsageFormatter cmdUsageFormatter = (CmdUsageFormatter) usageFormatter;
        cmdUsageFormatter.addDeprecatedCommand("enable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("disable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("set-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("remove-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("set-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("remove-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("set-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("get-retention");
        cmdUsageFormatter.addDeprecatedCommand("set-retention");
        cmdUsageFormatter.addDeprecatedCommand("remove-retention");
        cmdUsageFormatter.addDeprecatedCommand("get-backlog-quotas");
        cmdUsageFormatter.addDeprecatedCommand("set-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("remove-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("get-persistence");
        cmdUsageFormatter.addDeprecatedCommand("set-persistence");
        cmdUsageFormatter.addDeprecatedCommand("remove-persistence");
        cmdUsageFormatter.addDeprecatedCommand("get-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("get-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("set-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("remove-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("get-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("set-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("remove-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("get-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("get-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("set-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("get-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-offload-policies");
    }
}
Also used : IUsageFormatter(com.beust.jcommander.IUsageFormatter)

Example 3 with IUsageFormatter

use of com.beust.jcommander.IUsageFormatter in project incubator-pulsar by apache.

the class TokensCliUtils method main.

public static void main(String[] args) throws Exception {
    Arguments arguments = new Arguments();
    JCommander jcommander = new JCommander(arguments);
    IUsageFormatter usageFormatter = new DefaultUsageFormatter(jcommander);
    CommandCreateSecretKey commandCreateSecretKey = new CommandCreateSecretKey();
    jcommander.addCommand("create-secret-key", commandCreateSecretKey);
    CommandCreateKeyPair commandCreateKeyPair = new CommandCreateKeyPair();
    jcommander.addCommand("create-key-pair", commandCreateKeyPair);
    CommandCreateToken commandCreateToken = new CommandCreateToken();
    jcommander.addCommand("create", commandCreateToken);
    CommandShowToken commandShowToken = new CommandShowToken();
    jcommander.addCommand("show", commandShowToken);
    CommandValidateToken commandValidateToken = new CommandValidateToken();
    jcommander.addCommand("validate", commandValidateToken);
    jcommander.addCommand("gen-doc", new Object());
    try {
        jcommander.parse(args);
        if (arguments.help || jcommander.getParsedCommand() == null) {
            jcommander.usage();
            System.exit(1);
        }
    } catch (Exception e) {
        System.err.println(e);
        String chosenCommand = jcommander.getParsedCommand();
        usageFormatter.usage(chosenCommand);
        System.exit(1);
    }
    String cmd = jcommander.getParsedCommand();
    if (cmd.equals("create-secret-key")) {
        commandCreateSecretKey.run();
    } else if (cmd.equals("create-key-pair")) {
        commandCreateKeyPair.run();
    } else if (cmd.equals("create")) {
        commandCreateToken.run();
    } else if (cmd.equals("show")) {
        commandShowToken.run();
    } else if (cmd.equals("validate")) {
        commandValidateToken.run();
    } else if (cmd.equals("gen-doc")) {
        CmdGenerateDocs genDocCmd = new CmdGenerateDocs("pulsar");
        genDocCmd.addCommand("tokens", jcommander);
        genDocCmd.run(null);
    } else {
        System.err.println("Invalid command: " + cmd);
        System.exit(1);
    }
}
Also used : ParameterException(com.beust.jcommander.ParameterException) IOException(java.io.IOException) JCommander(com.beust.jcommander.JCommander) CmdGenerateDocs(org.apache.pulsar.common.util.CmdGenerateDocs) IUsageFormatter(com.beust.jcommander.IUsageFormatter) DefaultUsageFormatter(com.beust.jcommander.DefaultUsageFormatter)

Example 4 with IUsageFormatter

use of com.beust.jcommander.IUsageFormatter in project pulsar by yahoo.

the class TokensCliUtils method main.

public static void main(String[] args) throws Exception {
    Arguments arguments = new Arguments();
    JCommander jcommander = new JCommander(arguments);
    IUsageFormatter usageFormatter = new DefaultUsageFormatter(jcommander);
    CommandCreateSecretKey commandCreateSecretKey = new CommandCreateSecretKey();
    jcommander.addCommand("create-secret-key", commandCreateSecretKey);
    CommandCreateKeyPair commandCreateKeyPair = new CommandCreateKeyPair();
    jcommander.addCommand("create-key-pair", commandCreateKeyPair);
    CommandCreateToken commandCreateToken = new CommandCreateToken();
    jcommander.addCommand("create", commandCreateToken);
    CommandShowToken commandShowToken = new CommandShowToken();
    jcommander.addCommand("show", commandShowToken);
    CommandValidateToken commandValidateToken = new CommandValidateToken();
    jcommander.addCommand("validate", commandValidateToken);
    jcommander.addCommand("gen-doc", new Object());
    try {
        jcommander.parse(args);
        if (arguments.help || jcommander.getParsedCommand() == null) {
            jcommander.usage();
            System.exit(1);
        }
    } catch (Exception e) {
        System.err.println(e);
        String chosenCommand = jcommander.getParsedCommand();
        usageFormatter.usage(chosenCommand);
        System.exit(1);
    }
    String cmd = jcommander.getParsedCommand();
    if (cmd.equals("create-secret-key")) {
        commandCreateSecretKey.run();
    } else if (cmd.equals("create-key-pair")) {
        commandCreateKeyPair.run();
    } else if (cmd.equals("create")) {
        commandCreateToken.run();
    } else if (cmd.equals("show")) {
        commandShowToken.run();
    } else if (cmd.equals("validate")) {
        commandValidateToken.run();
    } else if (cmd.equals("gen-doc")) {
        CmdGenerateDocs genDocCmd = new CmdGenerateDocs("pulsar");
        genDocCmd.addCommand("tokens", jcommander);
        genDocCmd.run(null);
    } else {
        System.err.println("Invalid command: " + cmd);
        System.exit(1);
    }
}
Also used : ParameterException(com.beust.jcommander.ParameterException) IOException(java.io.IOException) JCommander(com.beust.jcommander.JCommander) CmdGenerateDocs(org.apache.pulsar.common.util.CmdGenerateDocs) IUsageFormatter(com.beust.jcommander.IUsageFormatter) DefaultUsageFormatter(com.beust.jcommander.DefaultUsageFormatter)

Example 5 with IUsageFormatter

use of com.beust.jcommander.IUsageFormatter in project pulsar by yahoo.

the class CmdTopics method initDeprecatedCommands.

private void initDeprecatedCommands() {
    IUsageFormatter usageFormatter = jcommander.getUsageFormatter();
    if (usageFormatter instanceof CmdUsageFormatter) {
        CmdUsageFormatter cmdUsageFormatter = (CmdUsageFormatter) usageFormatter;
        cmdUsageFormatter.addDeprecatedCommand("enable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("disable-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-per-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("set-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("remove-message-ttl");
        cmdUsageFormatter.addDeprecatedCommand("get-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-consumers-per-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-consumer");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("get-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-publish-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscribe-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("set-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("remove-maxProducers");
        cmdUsageFormatter.addDeprecatedCommand("get-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("set-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-message-size");
        cmdUsageFormatter.addDeprecatedCommand("get-retention");
        cmdUsageFormatter.addDeprecatedCommand("set-retention");
        cmdUsageFormatter.addDeprecatedCommand("remove-retention");
        cmdUsageFormatter.addDeprecatedCommand("get-backlog-quotas");
        cmdUsageFormatter.addDeprecatedCommand("set-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("remove-backlog-quota");
        cmdUsageFormatter.addDeprecatedCommand("get-persistence");
        cmdUsageFormatter.addDeprecatedCommand("set-persistence");
        cmdUsageFormatter.addDeprecatedCommand("remove-persistence");
        cmdUsageFormatter.addDeprecatedCommand("get-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-inactive-topic-policies");
        cmdUsageFormatter.addDeprecatedCommand("get-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("set-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("remove-compaction-threshold");
        cmdUsageFormatter.addDeprecatedCommand("get-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication");
        cmdUsageFormatter.addDeprecatedCommand("get-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("set-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("remove-deduplication-snapshot-interval");
        cmdUsageFormatter.addDeprecatedCommand("get-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-unacked-messages-on-subscription");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-types-enabled");
        cmdUsageFormatter.addDeprecatedCommand("get-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("set-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("remove-delayed-delivery");
        cmdUsageFormatter.addDeprecatedCommand("get-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("set-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-producers");
        cmdUsageFormatter.addDeprecatedCommand("get-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-replicator-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("set-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("remove-subscription-dispatch-rate");
        cmdUsageFormatter.addDeprecatedCommand("get-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("set-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("remove-max-subscriptions-per-topic");
        cmdUsageFormatter.addDeprecatedCommand("get-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("set-offload-policies");
        cmdUsageFormatter.addDeprecatedCommand("remove-offload-policies");
    }
}
Also used : IUsageFormatter(com.beust.jcommander.IUsageFormatter)

Aggregations

IUsageFormatter (com.beust.jcommander.IUsageFormatter)6 DefaultUsageFormatter (com.beust.jcommander.DefaultUsageFormatter)3 JCommander (com.beust.jcommander.JCommander)3 ParameterException (com.beust.jcommander.ParameterException)3 IOException (java.io.IOException)3 CmdGenerateDocs (org.apache.pulsar.common.util.CmdGenerateDocs)3