Package org.apache.geronimo.deployment.cli

Examples of org.apache.geronimo.deployment.cli.ServerConnection$UsernamePasswordHandler


    @Argument(index = 1, description = "Module plan")
    String modulePlan;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        CommandDistribute command = new CommandDistribute();

        List<String> commandArgs = new LinkedList<String>();
        commandArgs.add(module);
View Full Code Here


@Command(scope = "deploy", name = "disconnect", description = "Disconnect from a Geronimo server")
public class DisconnectCommand extends ConnectCommand {
    @Override
    protected Object doExecute() throws Exception {

        ServerConnection connection = (ServerConnection) session.get(ConnectCommand.SERVER_CONNECTION);

        if (connection != null) {
            println("Disconnecting from Geronimo server");

            try {
                connection.close();
            } catch (Exception e) {
                // ignore
            }

            session.put(SERVER_CONNECTION, null);
View Full Code Here

    @Argument(multiValued = true)
    List<String> pluginArtifacts;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        CommandListConfigurations command = new CommandListConfigurations();

        String repo = null;
        PluginListType plugins = null;

        if (mavenRepoURL != null) {
            plugins = command.getPluginCategories(mavenRepoURL, (GeronimoDeploymentManager) connection
                    .getDeploymentManager(), this);
            repo = mavenRepoURL;
        } else {
            println("Listing configurations from Geronimo server");

            repo = (String) session.get("PluginRepository");
            if (refreshRepo || repo == null) {
                repo = command.getRepository(this, (GeronimoDeploymentManager) connection
                        .getDeploymentManager());
                session.put("PluginRepository", repo);
            }

            plugins = (PluginListType) session.get("AvailablePlugins");
            if (refreshList || plugins == null) {
                plugins = command.getPluginCategories(repo, (GeronimoDeploymentManager) connection
                        .getDeploymentManager(), this);
                session.put("AvailablePlugins", plugins);
            }
        }

        if (plugins != null) {
            if (pluginArtifacts != null) {
                command.installPlugins((GeronimoDeploymentManager) connection.getDeploymentManager(), pluginArtifacts,
                        plugins, repo, this, connection);
            } else {
                PluginListType pluginsToInstall = command.getInstallList(plugins, this, repo);

                if (pluginsToInstall != null) {
                    command.installPlugins((GeronimoDeploymentManager) connection.getDeploymentManager(),
                            pluginsToInstall, repo, this, connection);
                }
            }
        }
View Full Code Here

    @Argument(required = true, description = "Plugin file")
    String pluginFile;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        CommandInstallCAR command = new CommandInstallCAR();

        BaseCommandArgs args = new BaseCommandArgs(pluginFile.split(""));
View Full Code Here

    @Argument(required = true, description = "Encrypted Message")
    String message;
   
    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        AbstractCommand command = new CommandEncrypt();

        BaseCommandArgs args = new BaseCommandArgs(message.split(" "));
View Full Code Here

    @Argument(required = true, description = "Library file")
    String libraryFile;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        CommandInstallLibrary command = new CommandInstallLibrary();

        InstallLibraryCommandArgs args = new InstallLibraryCommandArgsImpl(Arrays.asList(libraryFile).toArray(
                new String[1]), groupId);
View Full Code Here

    @Argument(required = true, description = "Module name")
    String moduleNames;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        AbstractCommand command = new CommandStop();

        BaseCommandArgs args = new BaseCommandArgs(moduleNames.split(" "));
View Full Code Here

    @Argument(index = 1, description = "Module plan")
    String modulePlan;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        CommandDeploy command = new CommandDeploy();

        List<String> commandArgs = new LinkedList<String>();
        commandArgs.add(module);
View Full Code Here

    @Argument(required = true, multiValued = true, description = "Module name")
    List<String> moduleNames;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        AbstractCommand command = new CommandRestart();

        BaseCommandArgs args = new BaseCommandArgs(moduleNames.toArray(new String[moduleNames.size()]));
View Full Code Here

    @Argument(index = 2, description = "Module id")
    List<String> moduleIds;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        AbstractCommand command = new CommandRedeploy();

        List<String> commandArgs = new LinkedList<String>();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.deployment.cli.ServerConnection$UsernamePasswordHandler

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.