Examples of execute()


Examples of org.openhab.binding.xbmc.rpc.calls.SystemShutdown.execute()

    showNotification.execute();
  }
 
  public void systemShutdown() {
    final SystemShutdown shutdown = new SystemShutdown(client, httpUri);
    shutdown.execute();
  }

  public void systemSuspend() {
    final SystemSuspend suspend = new SystemSuspend(client, httpUri);
    suspend.execute();
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.SystemSuspend.execute()

    shutdown.execute();
  }

  public void systemSuspend() {
    final SystemSuspend suspend = new SystemSuspend(client, httpUri);
    suspend.execute();
  }

  public void systemHibernate() {
    final SystemHibernate hibernate = new SystemHibernate(client, httpUri);
    hibernate.execute();
View Full Code Here

Examples of org.openhab.core.scriptengine.Script.execute()

    if(scriptEngine!=null) {
      String scriptString = Joiner.on(" ").join(args);
      Script script;
      try {
        script = scriptEngine.newScriptFromString(scriptString);
        Object result = script.execute();
       
        if(result!=null) {
          console.println(result.toString());
        } else {
          console.println("OK");
View Full Code Here

Examples of org.openinvoice.ubl4j.task.create.order.CreateInvoiceBasedOnOrderTask.execute()

            throw new UBL4JException(String.format("order '%s' doesn't exist", orderFile.getAbsolutePath()));
        }
        ((CreateInvoiceBasedOnOrderInput)input).setOrderURI(URI.create(orderFile.toURI().getPath()));
        CreateInvoiceBasedOnOrderTask task = new
                CreateInvoiceBasedOnOrderTask();
        task.execute(input);
        print(task);
    }

    /**
     * Renders an UBL invoice to the desired output format.
View Full Code Here

Examples of org.openinvoice.ubl4j.task.render.InvoiceRenderingTask.execute()

        }
        InvoiceType invoiceType = InvoiceTypeUnMarshaller.unMarshal(new FileInputStream(invoiceFile));
        InvoiceCreationInput input = new InvoiceRenderingInput(invoiceType);
        input = initOutputOptions(input);
        InvoiceRenderingTask task = new InvoiceRenderingTask();
        task.execute(input);
        print(task);
    }

    public Template parseCommandLineOptionTemplate() throws IOException, UBL4JException {
        Template template = null;
View Full Code Here

Examples of org.openqa.selenium.internal.CommandLine.execute()

    executeCommand(findReg(), args.toArray(new String[args.size()]));
  }

  private static String executeCommand(String commandName, String... args) {
    CommandLine cmd = new CommandLine(commandName, args);
    cmd.execute();

    String output = cmd.getStdOut();
    if (!cmd.isSuccessful()) {
      throw new WindowsRegistryException("exec return code " + cmd.getExitCode() + ": " + output);
    }
View Full Code Here

Examples of org.openqa.selenium.os.CommandLine.execute()

  public void afterEach() {
    driver.quit();

    // Make sure Opera is gone
    CommandLine line = new CommandLine("kill", "`pgrep opera`");
    line.execute();
  }

  @Test
  @Ignore
  // TODO(andreastt): Should be made local
View Full Code Here

Examples of org.openqa.selenium.remote.server.Session.execute()

  }

  public void execute(FutureTask<?> task) throws Exception {
    Session session = sessions.get(sessionId);
    if (session != null)
      session.execute(task);
    else
      task.run();
  }
}
View Full Code Here

Examples of org.openrdf.http.client.connections.HTTPRequest.execute()

    HTTPRequest request = pool.slash(id).get();

    try {
      request.accept(type);
      try {
        request.execute();
      }
      catch (NotFound e) {
        return null;
      }
      catch (UnsupportedQueryLanguage e) {
View Full Code Here

Examples of org.openrdf.query.Update.execute()

        RepositoryConnection connection2 = repository.getConnection();
        try {
            String query = String.format("DELETE { <%s> <%s> ?v } INSERT { <%s> <%s> ?v . } WHERE { <%s> <%s> ?v }", subject.stringValue(), predicate.stringValue(), subject.stringValue(), predicate.stringValue(), subject.stringValue(), predicate.stringValue());

            Update u = connection2.prepareUpdate(QueryLanguage.SPARQL, query);
            u.execute();

            connection2.commit();
        } finally {
            connection2.close();
        }
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.