Examples of exec()


Examples of org.exist.debuggee.dbgp.packets.Command.exec()

     
      IoSession session = (IoSession) dbgr.getSession(args[0].getStringValue());
      if (session == null) return Sequence.EMPTY_SEQUENCE;
     
      Command command = new org.exist.debuggee.dbgp.packets.StackGet(session, "");
      command.exec();
     
      return Utils.nodeFromString( getContext(), new String( command.responseBytes() ) );
     
    } catch (Throwable e) {
      throw new XPathException(this, Module.DEBUG001, e);
View Full Code Here

Examples of org.exist.debuggee.dbgp.packets.Stop.exec()

  @Override
  public void update(Observable o, Object arg) {
    if (arg.equals(BrokerPool.SIGNAL_SHUTDOWN)) {

      Stop command = new Stop(session, "");
      command.exec();
      //TODO: make sure that session is closed? what can be done if not?
    }
   
  }
}
View Full Code Here

Examples of org.fao.geonet.guiservices.schemas.GetSchemaInfo.exec()

      // Call GetSchemaInfo to place schema titles and codelists into
      // xpath /root/gui/schemas/{} for xsl transformation to use
      org.jdom.Element root = new org.jdom.Element(Jeeves.Elem.ROOT);
      org.jdom.Element gui = new org.jdom.Element(Jeeves.Elem.GUI);
      GetSchemaInfo gsi = new GetSchemaInfo();
      gui.addContent(gsi.exec(new org.jdom.Element(Jeeves.Elem.REQUEST), cnt.getSrvctx()));
      root.addContent(gui);

      org.jdom.Element metadata = new org.jdom.Element(Geonet.Elem.METADATA);
      metadata.addContent(jdomDoc.detachRootElement());
      root.addContent(metadata);
View Full Code Here

Examples of org.fao.geonet.services.metadata.View.exec()

                }

                View view = new View();
                view.init(_appPath, _config);
               
                result = view.exec(result, context);

                for (Object e : tmp.getChildren()) {
                    Element el = (Element) e;
                    result.addContent((Element) el.clone());
                }
View Full Code Here

Examples of org.foo.shell.Command.exec()

    if (command != null) {
      found = true;

      try {
        command.exec((idx > 0) ? args.substring(idx) : null, out, err);
      } catch (Exception ex) {
        ex.printStackTrace(err);
        out.println("Unable to execute: " + args);
      }
    }
View Full Code Here

Examples of org.gridkit.vicluster.ViNode.exec()

  public void classify_serial_gc() throws IOException {
    try {
      String gc = "-XX:+UseSerialGC";
      ViNode jvm = cloud.node(gc);
      JvmProps.at(jvm).addJvmArg(gc);     
      jvm.exec(new Callable<Void>() {

        @Override
        public Void call() throws Exception {
          dumpMemoryPools();
          return null;
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatDocSynchronizerImpl.exec()

            protected void syncMethod()
            {
                processThreadSync(clientDoc);
            }
        };
        syncTask.exec(itsNatDoc);
    }

    public void processThreadSync(ClientDocumentStfulImpl clientDoc)
    {
        bindClientToRequest(clientDoc);
View Full Code Here

Examples of org.jaggeryjs.scriptengine.engine.RhinoEngine.exec()

            //Parsing the script
          final Reader source = new ScriptReader(new BufferedInputStream(fstream));
            out.println("\n");
            ShellUtilityService.initializeUtilityServices();
            engine.exec(source, scope, null);
            ShellUtilityService.destroyUtilityServices();
            out.flush();
            out.println("\n");
    }catch (Exception e){
      out.println("\n");
View Full Code Here

Examples of org.jclouds.ssh.SshClient.exec()

      for (NodeMetadata node : nodes) {
         assertTrue(node.getGroup().equals("test-launch-cluster"));
         logger.debug("Created Node: %s", node);
         SshClient client = context.utils().sshForNode().apply(node);
         client.connect();
         ExecResponse hello = client.exec("echo hello");
         assertEquals(hello.getOutput().trim(), "hello");
      }
      context.getComputeService().destroyNodesMatching(new Predicate<NodeMetadata>() {
         @Override
         public boolean apply(NodeMetadata input) {
View Full Code Here

Examples of org.jclouds.sshj.SshjSshClient.exec()

    Assert.hasText(fileName, "The remote file name must be specified.");
    boolean isFileCopied = false;
    long timeout = System.currentTimeMillis() + retryTime;
    while (!isFileCopied && System.currentTimeMillis() < timeout) {
      SshjSshClient client = getSSHClient(host, privateKey);
      client.exec("mkdir " + dir);
      client.put(dir + "/" + fileName, payload);
      ExecResponse response = client.exec("ls -al " + dir + "/" + fileName);
      if (response.getExitStatus() > 0) {
        continue; //file was not created
      }
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.