Examples of Command


Examples of org.gradle.launcher.protocol.Command

        }
        connection.dispatch(new CommandComplete(executionListener.failure));
    }

    private void doRunWithLogging(Connection<Object> connection, Stoppable serverControl, ExecutionListener executionListener) {
        Command command = (Command) connection.receive();
        try {
            doRunWithExceptionHandling(command, serverControl, executionListener);
        } catch (Throwable throwable) {
            BuildExceptionReporter exceptionReporter = new BuildExceptionReporter(loggingServices.get(StyledTextOutputFactory.class), new StartParameter(), command.getClientMetaData());
            exceptionReporter.reportException(throwable);
            executionListener.onFailure(throwable);
        }
    }
View Full Code Here

Examples of org.h2.command.Command

     */
    public Command prepareLocal(String sql) {
        if (closed) {
            throw DbException.get(ErrorCode.CONNECTION_BROKEN_1, "session closed");
        }
        Command command;
        if (queryCacheSize > 0) {
            if (queryCache == null) {
                queryCache = SmallLRUCache.newInstance(queryCacheSize);
            } else {
                command = queryCache.get(sql);
                if (command != null && command.canReuse()) {
                    command.reuse();
                    return command;
                }
            }
        }
        Parser parser = new Parser(this);
        command = parser.prepareCommand(sql);
        if (queryCache != null) {
            if (command.isCacheable()) {
                queryCache.put(sql, command);
            }
        }
        return command;
    }
View Full Code Here

Examples of org.hotswap.agent.command.Command

                                          final ClassLoader classLoader, URI uri) throws IOException {
        pluginManager.getWatcher().addEventListener(classLoader, uri, new WatchEventListener() {
            @Override
            public void onEvent(WatchFileEvent event) {
                if (event.isFile()) {
                    Command command = new WatchEventCommand(pluginAnnotation, event, classLoader);
                    pluginManager.getScheduler().scheduleCommand(command, watchEventDTO.getTimeout());
                    LOGGER.trace("Resource changed {}", event);
                }
            }
        });
View Full Code Here

Examples of org.impalaframework.command.framework.Command

    CommandLineInputCapturer inputCapturer = new CommandLineInputCapturer();
    commandState.setInputCapturer(inputCapturer);

    GlobalCommandState.getInstance().addValue(CommandStateConstants.TEST_CLASS, testClass);

    Command initCommand = getInitCommand();
    initCommand.execute(commandState);

    InteractiveTestCommand testCommand = new InteractiveTestCommand();
    StopCheckerListener stopCheckerListener = new StopCheckerListener();

    Integer maxInactiveSeconds = getMaxInactiveSeconds();
View Full Code Here

Examples of org.infinispan.cli.commands.Command

      }
   }

   private void execute(final String line) {
      ProcessedCommand parsed = new ProcessedCommand(line);
      Command command = context.getCommandRegistry().getCommand(parsed.getCommand());
      if (command != null) {
         command.execute(context, parsed);
      } else {
         context.error("Command " + parsed.getCommand() + " unknown or not available");
      }
   }
View Full Code Here

Examples of org.infinispan.quickstart.compatibility.commands.Command

      con.printf(PROMPT);

      while (true) {
         String input = con.readLine(">");
         if ("quit".equals(input)) break;
         Command cmd = client.parseCommand(input);
         if (cmd == null) {
            con.printf("Unable to perform the requested action.\n");
         } else {
            cmd.execute(con, input);
         }
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.warp.impl.shared.command.Command

                @Override
                public void run() {
                    try {
                        CommandPayload payload = execute(eventUrlForGet, CommandPayload.class, null);
                        if (payload != null) {
                            Command command = payload.getCommand();
                            try {
                                operation.performInContext(command);
                            } catch (Throwable e) {
                                payload.setThrowable(e);
                            }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.mdb.dynamic.api.Command

        // Get Commands
        final Method[] methods = beanClass.getMethods();
        for (Method method : methods) {
            if (method.isAnnotationPresent(Command.class)) {
                final Command command = method.getAnnotation(Command.class);
                cmds.add(new Cmd(command.value(), method));
            }
        }

        // Validate
        if (this.prompt == null || this.prompt.length() == 0) {
View Full Code Here

Examples of org.jboss.blacktie.btadmin.Command

    for (int i = 0; i < commands.size(); i++) {
      if (command != null && !command.equals(commands.get(i))) {
        continue;
      }
      try {
        Command command = CommandHandler.loadCommand(commands.get(i));
        log.info("Example usage: " + commands.get(i) + " "
            + command.getExampleUsage());
      } catch (Exception e) {
        log.error("Could not get help for command: " + commands.get(i),
            e);
        throw new CommandFailedException(-1);
      }
View Full Code Here

Examples of org.jboss.console.twiddle.command.Command

   {
      //
      // jason: need to change this to accept unique substrings on command names
      //

      Command proto = (Command) commandProtoMap.get(name);
      if (proto == null)
      {
         throw new NoSuchCommandException(name);
      }

      Command command = (Command) proto.clone();
      command.setCommandContext(createCommandContext());

      return command;
   }
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.