Examples of CommandProcessor


Examples of Framework.CommandProcessor

        return this.agentInfo.getMOTypeName();
    }

    public void initCmdProcessor() {
      if (this.commandProcessor == null) {
        this.commandProcessor = new CommandProcessor();
      }
    }
View Full Code Here

Examples of Framework.CommandProcessor

        return this.agentInfo.getMOTypeName();
    }

    public void initCmdProcessor() {
      if (this.commandProcessor == null) {
        this.commandProcessor = new CommandProcessor();
      }
    }
View Full Code Here

Examples of com.discoverydns.dnsapiclient.framework.command.CommandProcessor

  }

  private BlockingCommandExecutor createBlockingCommandExecutor(
      ClientTransactionIdStrategy clientTransactionIdStrategy,
      TransactionLogHandler transactionLogHandler, WebTarget baseWebTarget) {
    final CommandProcessor commandProcessor = new BasicCommandProcessor();
    // UserCommands
    commandProcessor.subscribe(UserGetCommand.class,
        new UserGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(UserListCommand.class,
        new UserListCommandHandler(baseWebTarget));
    // PlanCommands
    commandProcessor.subscribe(PlanGetCommand.class,
        new PlanGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(PlanListCommand.class,
        new PlanListCommandHandler(baseWebTarget));
    // NameServerSetCommands
    commandProcessor.subscribe(NameServerSetGetCommand.class,
        new NameServerSetGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(NameServerSetListCommand.class,
        new NameServerSetListCommandHandler(baseWebTarget));
    // NameServerInterfaceSetCommands
    commandProcessor.subscribe(NameServerInterfaceSetGetCommand.class,
        new NameServerInterfaceSetGetCommandHandler(baseWebTarget));
    // AccountCommands
    commandProcessor.subscribe(AccountGetCommand.class,
        new AccountGetCommandHandler(baseWebTarget));
    // ZoneCommands
    commandProcessor.subscribe(ZoneGetCommand.class,
        new ZoneGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneListCommand.class,
        new ZoneListCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneCreateCommand.class,
        new ZoneCreateCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneUpdateCommand.class,
        new ZoneUpdateCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneUpdateResourceRecordsCommand.class,
        new ZoneUpdateResourceRecordsCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneDeleteCommand.class,
        new ZoneDeleteCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneGetQueryUsageCommand.class,
        new ZoneGetQueryUsageCommandHandler(baseWebTarget));
    commandProcessor.subscribe(ZoneGetZoneFileCommand.class,
        new ZoneGetZoneFileCommandHandler(baseWebTarget));
    // MessageCommands
    commandProcessor.subscribe(MessagePollCommand.class,
        new MessagePollCommandHandler(baseWebTarget));
    commandProcessor.subscribe(MessageGetCommand.class,
        new MessageGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(MessageAcknowledgeCommand.class,
        new MessageAcknowledgeCommandHandler(baseWebTarget));

    // Interceptors
    commandProcessor
        .addCommandInterceptor(new TransactionLogCommandInterceptor(
            transactionLogHandler));
    commandProcessor
        .addCommandInterceptor(new ClientTransactionIdCommandInterceptor(
            clientTransactionIdStrategy));
    commandProcessor
        .addCommandInterceptor(new StopwatchCommandInterceptor());

    return new BlockingCommandExecutor(commandProcessor);
  }
View Full Code Here

Examples of com.intellij.openapi.command.CommandProcessor

  }

  public final void actionPerformed(final Editor editor, final DataContext dataContext) {
    if (editor == null) return;

    CommandProcessor commandProcessor = CommandProcessor.getInstance();
    Runnable command = new Runnable() {
      public void run() {
        getHandler().execute(editor, getProjectAwareDataContext(editor, dataContext));
      }
    };

    String commandName = getTemplatePresentation().getText();
    if (commandName == null) commandName = "";
    // use new Ref() here to avoid merging two consequential commands, and, in the same time, pass along the Document
    commandProcessor.executeCommand(editor.getProject(), command, commandName, new Ref(editor.getDocument()));
  }
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

     * @param serverPort the server port
     * @param browser the browser
     * @param contextPathURL the context path url
     */
    public GrapheneSeleniumImpl(String serverHost, int serverPort, Browser browser, URL contextPathURL) {
        CommandProcessor commandProcessor = new HttpCommandProcessor(serverHost, serverPort,
                browser.inSeleniumRepresentation(), contextPathURL.toString());
        interceptionProxy = new CommandInterceptorProxyImpl(commandProcessor);
        selenium = new ExtendedSelenium(interceptionProxy.getCommandProcessorProxy());
        pageExtensions = new PageExtensionsImpl();
        seleniumExtensions = new SeleniumExtensionsImpl();
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

        seleniumServer.start();

        String baseURL = String.format("http://localhost:%d%s/", port, contextPath);

        CommandProcessor httpCommandProcessor = new HttpCommandProcessor("localhost",
                RemoteControlConfiguration.DEFAULT_PORT, browserStartCommand, baseURL);

        final ErrorReporterImpl errorReporter = new ErrorReporterImpl(httpCommandProcessor, testContext);

        ErrorReportingCommandProcessor commandProcessor = new ErrorReportingCommandProcessor(httpCommandProcessor,
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

        server = new SeleniumServer();

        server.start();

        CommandProcessor cp = new HttpCommandProcessor("localhost",
                RemoteControlConfiguration.DEFAULT_PORT, seleniumBrowserCommand, BASE_URL);

        ErrorReporter errorReporter = new ErrorReporterImpl(cp, testContext);

        selenium = new DefaultSelenium(new ErrorReportingCommandProcessor(cp, errorReporter));
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

        seleniumServer.start();

        String baseURL = String.format("http://localhost:%d%s/", port, contextPath);

        CommandProcessor httpCommandProcessor = new HttpCommandProcessor("localhost",
                RemoteControlConfiguration.DEFAULT_PORT, browserStartCommand, baseURL);

        final ErrorReporterImpl errorReporter = new ErrorReporterImpl(httpCommandProcessor, testContext);

        ErrorReportingCommandProcessor commandProcessor = new ErrorReportingCommandProcessor(httpCommandProcessor,
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

        }

        seleniumServer.start();


        CommandProcessor httpCommandProcessor = new HttpCommandProcessor("localhost",
                seleniumServer.getPort(), browserStartCommand, baseURL);

        final ErrorReporterImpl errorReporter = new ErrorReporterImpl(httpCommandProcessor, testContext);

        ErrorReportingCommandProcessor commandProcessor = new ErrorReportingCommandProcessor(httpCommandProcessor,
View Full Code Here

Examples of com.thoughtworks.selenium.CommandProcessor

        server = new SeleniumServer();

        server.start();

        CommandProcessor cp = new HttpCommandProcessor("localhost", SeleniumServer.DEFAULT_PORT,
                                                       seleniumBrowserCommand, BASE_URL);

        selenium = new DefaultSelenium(new ErrorReportingCommandProcessor(cp));

        selenium.start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.