Examples of execute()


Examples of net.sf.antcontrib.cpptasks.ide.ProjectDef.execute()

         
          Enumeration iter = projects.elements();
          while (iter.hasMoreElements()) {
            ProjectDef projectDef = (ProjectDef) iter.nextElement();
            if (projectDef.isActive()) {
              projectDef.execute(this, files, targets, linkTarget);
            }
          }
        }
        if (projectsOnly) return;
     
View Full Code Here

Examples of net.sf.archimede.security.SystemTransactionTemplate.execute()

                    }
                    return null;
                }
            };
            try {
                st.execute();
            } catch (Exception e) {
                e.printStackTrace();
                throw new RuntimeException(e);
            }
           
View Full Code Here

Examples of net.sf.ehcache.search.expression.Criteria.execute()

            }
            if (element.getObjectValue() instanceof SoftLock) {
                continue;
            }

            if (c.execute(element, attributeExtractors)) {
                anyMatches = true;

                if (includeResults) {
                    final Map<String, Object> attributes;
                    if (query.requestedAttributes().isEmpty()) {
View Full Code Here

Examples of net.sf.fec.core.ExternalExecutor.execute()

    @Override
    public void run() {
        getArguments();
        ExternalExecutor externalExecutor = new ExternalExecutor(externalProcessBuilder, "ls");
        try {
            int exitValue = externalExecutor.execute();
            System.out.println(exitValue);
        } catch (InterruptedException ex) {
            Exceptions.printStackTrace(ex);
        } catch (ExecutionException ex) {
            Exceptions.printStackTrace(ex);
View Full Code Here

Examples of net.sf.graphiti.ui.commands.copyPaste.CopyCommand.execute()

  @Override
  public void run() {
    // execute the copy command
    CopyCommand command = new CopyCommand(getSelectedObjects());
    command.execute();
  }
}
View Full Code Here

Examples of net.sf.jmatchparser.template.engine.operation.Operation.execute()

      OperationResult opres = OperationResult.CONTINUE;
      while (opres == OperationResult.CONTINUE) {
        int ip = current.getNextInstructionAndIncrement();
        Operation op = template.getOperation(ip);
        try {
          opres = op.execute(current);
        } catch (RuntimeException ex) {
          throw new RuntimeException("Cannot execute operation at template position:\n\t" + op.getTemplatePosition(), ex);
        }
        if (opres == null)
          throw new RuntimeException(op.getClass().toString() + " returned invalid operation result");
View Full Code Here

Examples of net.sf.katta.operation.master.MasterOperation.execute()

    MasterOperation masterOperation = new StatefulMasterOperation();
    queue.add(masterOperation);

    masterOperation = queue.peek();
    masterOperation.execute(mock(MasterContext.class), Collections.EMPTY_LIST);

    queue.moveOperationToWatching(masterOperation, Collections.EMPTY_LIST);
    assertEquals(1, queue.getWatchdogs().size());
    masterOperation = queue.getWatchdogs().get(0).getOperation();
    masterOperation.nodeOperationsComplete(mock(MasterContext.class), Collections.EMPTY_LIST);
View Full Code Here

Examples of net.sf.katta.operation.node.NodeOperation.execute()

          try {
            NodeOperation operation = _queue.peek();
            OperationResult operationResult;
            try {
              LOG.info("executing " + operation);
              operationResult = operation.execute(_nodeContext);
            } catch (Exception e) {
              ExceptionUtil.rethrowInterruptedException(e);
              LOG.error(_nodeContext.getNode().getName() + ": failed to execute " + operation, e);
              operationResult = new OperationResult(_nodeContext.getNode().getName(), e);
            }
View Full Code Here

Examples of net.sf.katta.operation.node.ShardRedeployOperation.execute()

  private void redeployInstalledShards() {
    Collection<String> installedShards = _context.getShardManager().getInstalledShards();
    ShardRedeployOperation redeployOperation = new ShardRedeployOperation(installedShards);
    try {
      redeployOperation.execute(_context);
    } catch (InterruptedException e) {
      ExceptionUtil.convertToRuntimeException(e);
    }
  }
View Full Code Here

Examples of net.sf.microlog.core.format.command.FormatCommandInterface.execute()

      int length = commandArray.length;

      for (int index = 0; index < length; index++) {
        FormatCommandInterface currentConverter = commandArray[index];
        if (currentConverter != null) {
          formattedStringBuffer.append(currentConverter.execute(
              clientID, name, time, level, message, t));
        }
      }
    }
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.