Examples of execute()


Examples of org.xtreemfs.babudb.api.database.UserDefinedLookup.execute()

   
    private void doUserLookup(final LSMDBRequest<Object> r) {
        final UserDefinedLookup l = r.getUserDefinedLookup();
        final LSMLookupInterface lif = new LSMLookupInterface(r.getDatabase());
        try {
            Object result = l.execute(lif);
            r.getListener().finished(result);
        } catch (BabuDBException ex) {
            r.getListener().failed(ex);
        }
    }
View Full Code Here

Examples of org.xtreemfs.babudb.api.dev.plugin.PluginMain.execute()

                            depPath);                
                    loadJar(depPath);
                }
               
                // start the plugin
                babuDB = m.execute(babuDB, configPath);
           
            } catch (Exception e) {
                if (e.getMessage() == null) Logging.logError(Logging.LEVEL_WARN, this, e);
                throw new IOException("Plugin at '" + pluginPath + "' for version " + BABUDB_VERSION
                        + ((configPath != null) ? " with config at path " + configPath : "")
View Full Code Here

Examples of org.yaorma.web.action.ActionInterface.execute()

      }
      actionName = getActionPrefix() + req.getParameter(getActionName());
      actionName = actionName.replace("/", ".");
      action = (ActionInterface) Class.forName(actionName).newInstance();
      executeBeforeAction(req, res, action);
      action.execute(req, res);
      executeAfterAction(req, res, action);
      String nextUrl = action.getNextUrl();
      if (nextUrl != null) {
        RequestDispatcher disp = req.getRequestDispatcher(nextUrl);
        disp.forward(req, res);
View Full Code Here

Examples of org.z.system.ProcessExecuter.execute()

    new File("org/z/test").mkdirs();
    Resources.ExtractResource("org/z/test/" + name + ".in.txt", inputFile);
   
    // check syntax
    ProcessExecuter p = new ProcessExecuter("javac org/z/test/" + name + ".java");
    ProcessOutput pout = p.execute();
    if(!pout.getStderr().trim().equals("")) {
      System.err.println(pout.getStderr().trim());
      throw new Exception(pout.getStderr().trim());
    }
   
View Full Code Here

Examples of org.zanata.webtrans.server.rpc.GetTransUnitListHandler.execute()

                GetTransUnitListHandler handler =
                        new MockHandlerFactory()
                                .createGetTransUnitListHandlerWithBehavior(
                                        DOCUMENT.getId(), TEXT_FLOWS, LOCALE,
                                        action.getOffset(), action.getCount());
                getTransUnitListResult = handler.execute(action, null);
                return null;
            }
        }).when(dispatcher).execute(actionCaptor.capture(),
                asyncCallbackCaptor.capture());
    }
View Full Code Here

Examples of org.zanata.webtrans.server.rpc.UpdateTransUnitHandler.execute()

                new UpdateTransUnit(new TransUnitUpdateRequest(new TransUnitId(
                        textFlowId), Lists.newArrayList(translation),
                        translationState, versionNum), updateType);
        action.setWorkspaceId(workspaceId);

        UpdateTransUnitResult result = transUnitHandler.execute(action, null);

        assertThat(result.isSingleSuccess(), is(true));
        verify(mockIdentity).checkLoggedIn();
        verify(mockIdentity, atLeastOnce()).checkPermission(anyString(),
                any(HLocale.class), any(HProject.class));
View Full Code Here

Examples of org.zeroturnaround.exec.ProcessExecutor.execute()

    ProcessExecutor exec = new ProcessExecutor("java", "-cp", "target/test-classes",
        PrintInputToOutput.class.getName()).readOutput(true);
    exec.streams(handler);

    String result = exec.execute().outputUTF8();
    Assert.assertEquals(str, result);
  }

  @Test
  public void testPumpFromInputToOutputWithInput() throws Exception {
View Full Code Here

Examples of pivot.web.DeleteQuery.execute()

        // POST
        DeleteQuery deleteQuery = new DeleteQuery(HOSTNAME, PORT, PATH, SECURE);
        authentication.authenticate(deleteQuery);

        deleteQuery.execute(new TaskListener<Void>() {
            public void taskExecuted(Task<Void> task) {
                System.out.println("DELETE result");
            }

            public void executeFailed(Task<Void> task) {
View Full Code Here

Examples of pivot.web.GetQuery.execute()

        final GetQuery getQuery = new GetQuery(HOSTNAME, PORT, PATH, SECURE);
        getQuery.getArguments().put("a", "b");
        getQuery.setSerializer(new BinarySerializer());
        authentication.authenticate(getQuery);

        getQuery.execute(new TaskListener<Object>() {
            @SuppressWarnings("unchecked")
            public void taskExecuted(Task<Object> task) {
                Dictionary<String, Object> result = (Dictionary<String, Object>)task.getResult();

                System.out.println("GET result: "
View Full Code Here

Examples of pivot.web.PostQuery.execute()

        // POST
        PostQuery postQuery = new PostQuery(HOSTNAME, PORT, PATH, SECURE);
        authentication.authenticate(postQuery);
        postQuery.setValue(JSONSerializer.parseList("[1, 2, 3]"));

        postQuery.execute(new TaskListener<URL>() {
            public void taskExecuted(Task<URL> task) {
                System.out.println("POST result: " + task.getResult());
            }

            public void executeFailed(Task<URL> task) {
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.