Examples of createCommand()


Examples of com.google.jstestdriver.SlaveBrowser.createCommand()

    fileResults.add(new FileResult(new FileSource("/test/filename1.js", "filename1.js", 123, -1), true, ""));
    fileResults.add(new FileResult(new FileSource("/test/filename2.js", "filename2.js", 456, -1), true, ""));
    fileResults.add(new FileResult(new FileSource("/test/filename3.js", "filename3.js", 789, -1), true, ""));
    slave.createCommand("awaitingResponse");
    slave.dequeueCommand();
    slave.createCommand("BrowserCommand");
    Response response = new Response();

    response.setType(ResponseType.FILE_LOAD_RESULT.name());
    response.setResponse(gson.toJson(new LoadedFiles(fileResults)));
    handler.service("1", gson.toJson(response), "", null, writer);
View Full Code Here

Examples of com.google.jstestdriver.SlaveBrowser.createCommand()

    response.setType(ResponseType.RESET_RESULT.name());
    response.setResponse(new Gson().toJson(new LoadedFiles()));
    response.setBrowser(new BrowserInfo());

    JsonCommand resetCommand = new JsonCommand(CommandType.RESET, Collections.<String>emptyList());
    slave.createCommand(gson.toJson(resetCommand));
    slave.dequeueCommand();

    handler.service(id, gson.toJson(response), "", null, writer);

    Set<FileInfo> fileInfos = slave.getFileSet();
View Full Code Here

Examples of com.griddynamics.gridkit.coherence.patterns.command.benchmark.commands.CommandFactory.createCommand()

                Identifier ctx = contexts[rnd.nextInt(contexts.length)];
                long id = offset + c * commandFactory.getMarksPerCommand();
               
                speedLimit.accure();
   
                facade.submit(ctx, commandFactory.createCommand(id, benchmarkParams.getReportBuffer()).send());
              }
             
              finishLatch.countDown();
            }
            catch (Throwable t)
View Full Code Here

Examples of com.netflix.genie.client.CommandServiceClient.createCommand()

        LOG.info("Initializing CommandServiceClient");
        final CommandServiceClient commandClient = CommandServiceClient.getInstance();

        LOG.info("Creating command pig13_mr2");
        final Command command1 = commandClient.createCommand(
                CommandServiceSampleClient.createSampleCommand(
                        CommandServiceSampleClient.ID));

        commandClient.setApplicationForCommand(command1.getId(), app1);
View Full Code Here

Examples of de.iritgo.aktera.model.ModelResponse.createCommand()

    String backModel = req.getParameterAsString("backModel");

    if (! StringTools.isEmpty(backModel))
    {
      Command cmd = res.createCommand(backModel);

      cmd.setName("back");
      cmd.setLabel("back");
      res.add(cmd);
    }
View Full Code Here

Examples of de.iritgo.aktera.ui.form.CommandInfo.createCommand()

      CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);

      if (viewCommand != null)
      {
        Command cmd = viewCommand.createCommand(request, response, context);

        cmd.setName("command");
        cmd.setParameter(listing.getKeyName(), id);
        cmd.setParameter("link", "Y");
        outItem.setAttribute("command", cmd);
View Full Code Here

Examples of edu.isi.karma.controller.command.CommandFactory.createCommand()

      }
      System.out.println(inputParamArr.toString(4));
      CommandFactory cf = commandFactoryMap.get(commObject.get(HistoryArguments.commandName.name()));
      if(cf != null) {
        try { // This is sort of a hack the way I did this, but could not think of a better way to get rid of the dependency
          Command comm = cf.createCommand(inputParamArr, workspace);
          comm.setOutputColumns(newOutputColumns);
          if(comm != null){
            commands.add(comm);
            //TODO consolidate update
            uc.append(workspace.getCommandHistory().doCommand(comm, workspace, true));
View Full Code Here

Examples of edu.isi.karma.controller.command.JSONInputCommandFactory.createCommand()

    CommandFactory cf = ctrl.getCommandFactoryMap().get(
        MultipleValueEditColumnCommand.class.getSimpleName());
    JSONInputCommandFactory scf = (JSONInputCommandFactory) cf;

    // TODO handle exceptions intelligently
    Command comm = scf.createCommand(inputParamArr, workspace);
    if (comm != null) {
      // logger.info("Executing command: " +
      // commObject.get(HistoryArguments.commandName.name()));
      workspace.getCommandHistory().doCommand(comm, workspace);
    }
View Full Code Here

Examples of edu.isi.karma.controller.command.alignment.GenerateR2RMLModelCommandFactory.createCommand()

      }
     
      // If the model is not published, publish it!
      if(!f.exists() || !f.isFile()) {
        GenerateR2RMLModelCommandFactory factory = new GenerateR2RMLModelCommandFactory();
        GenerateR2RMLModelCommand cmd = (GenerateR2RMLModelCommand)factory.createCommand(workspace, worksheetId, TripleStoreUtil.defaultModelsRepoUrl, graphName, selection.getName());
        cmd.doIt(workspace);
      } else {
        // if the model was published 30 min ago, publish it again, just to be sure
        long diff = Calendar.getInstance().getTimeInMillis() - f.lastModified();
        if((diff / 1000L / 60L) > 30) {
View Full Code Here

Examples of edu.isi.karma.controller.command.worksheet.AddColumnCommandFactory.createCommand()

      if (null == addColCmd) {
        JSONArray addColumnInput = getAddColumnCommandInputJSON(hTableId);
        AddColumnCommandFactory addColumnFac = (AddColumnCommandFactory) ctrl
            .getCommandFactoryMap().get(
                AddColumnCommand.class.getSimpleName());
        addColCmd = (AddColumnCommand) addColumnFac.createCommand(
            addColumnInput, workspace);
        addColCmd.saveInHistory(false);
        addColCmd.doIt(workspace);
      }
      else if(null == hTable.getHNode(addColCmd.getNewHNodeId()))
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.