Package com.google.gerrit.sshd

Examples of com.google.gerrit.sshd.DispatchCommandProvider


    // The following commands can be ran on a server in either Master or Slave
    // mode. If a command should only be used on a server in one mode, but not
    // both, it should be bound in both MasterCommandModule and
    // SlaveCommandModule.

    command(gerrit).toProvider(new DispatchCommandProvider(gerrit));
    command(gerrit, "ban-commit").to(BanCommitCommand.class);
    command(gerrit, "flush-caches").to(FlushCaches.class);
    command(gerrit, "ls-projects").to(ListProjectsCommand.class);
    command(gerrit, "ls-groups").to(ListGroupsCommand.class);
    command(gerrit, "query").to(Query.class);
    command(gerrit, "show-caches").to(ShowCaches.class);
    command(gerrit, "show-connections").to(ShowConnections.class);
    command(gerrit, "show-queue").to(ShowQueue.class);
    command(gerrit, "stream-events").to(StreamEvents.class);
    command(gerrit, "version").to(VersionCommand.class);

    command(gerrit, "plugin").toProvider(new DispatchCommandProvider(plugin));
    command(plugin, "ls").to(PluginLsCommand.class);
    command(plugin, "install").to(PluginInstallCommand.class);
    command(plugin, "reload").to(PluginReloadCommand.class);
    command(plugin, "remove").to(PluginRemoveCommand.class);
    command(plugin, "add").to(Commands.key(plugin, "install"));
    command(plugin, "rm").to(Commands.key(plugin, "remove"));

    command(git).toProvider(new DispatchCommandProvider(git));
    command(git, "receive-pack").to(Commands.key(gerrit, "receive-pack"));
    command(git, "upload-pack").to(Upload.class);

    command("ps").to(ShowQueue.class);
    command("kill").to(KillCommand.class);
View Full Code Here


  }

  @Override
  protected final void configure() {
    Preconditions.checkState(command != null, "@PluginName must be provided");
    bind(Commands.key(command)).toProvider(new DispatchCommandProvider(command));
    configureCommands();
  }
View Full Code Here

    // mode. If a command should only be used on a server in one mode, but not
    // both, it should be bound in both MasterCommandModule and
    // SlaveCommandModule.

  command(gerrit, "receive-pack").to(Receive.class);
    command(gerrit).toProvider(new DispatchCommandProvider(gerrit));
    command(gerrit, "show-connections").to(AdminShowConnections.class);

    command(git).toProvider(new DispatchCommandProvider(git));
    command(git, "receive-pack").to(Commands.key(gerrit, "receive-pack"));
    command(git, "upload-pack").to(Upload.class);

    command("kill").to(AdminKill.class);
View Full Code Here

    // The following commands can be ran on a server in either Master or Slave
    // mode. If a command should only be used on a server in one mode, but not
    // both, it should be bound in both MasterCommandModule and
    // SlaveCommandModule.

    command(gerrit).toProvider(new DispatchCommandProvider(gerrit));
    command(gerrit, "show-connections").to(AdminShowConnections.class);
    command(gerrit, "show-queue").to(ShowQueue.class);

    command(git).toProvider(new DispatchCommandProvider(git));
    command(git, "receive-pack").to(Commands.key(gerrit, "receive-pack"));
    command(git, "upload-pack").to(Upload.class);

    command("ps").to(ShowQueue.class);
    command("kill").to(AdminKill.class);
View Full Code Here

TOP

Related Classes of com.google.gerrit.sshd.DispatchCommandProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.