Examples of ExecutionResult


Examples of gov.nasa.arc.mct.policy.ExecutionResult

*/
public class PreferredViewPolicy implements Policy {

    @Override
    public ExecutionResult execute(PolicyContext context) {
        return new ExecutionResult(context,true,"");
    }
View Full Code Here

Examples of org.apache.continuum.buildagent.utils.shell.ExecutionResult

        // Execute the build
        // ----------------------------------------------------------------------

        try
        {
            ExecutionResult result = getBuildAgentShellCommandHelper().executeShellCommand( workingDirectory, actualExecutable,
                                                                                  arguments, output, project.getId(),
                                                                                  environments );

            log.info( "Exit code: " + result.getExitCode() );

            return new ContinuumAgentBuildExecutionResult( output, result.getExitCode() );
        }
        catch ( CommandLineException e )
        {
            if ( e.getCause() instanceof InterruptedException )
            {
View Full Code Here

Examples of org.apache.continuum.utils.shell.ExecutionResult

                arguments = sb.toString();
                actualExecutable = SUDO_EXECUTABLE;
                workingDirectory = chrootJailDirectory; // not really used but must exist
            }

            ExecutionResult result =
                getShellCommandHelper().executeShellCommand( workingDirectory, actualExecutable, arguments, output,
                                                             project.getId(), environments );

            log.info( "Exit code: " + result.getExitCode() );

            return new ContinuumBuildExecutionResult( output, result.getExitCode() );
        }
        catch ( CommandLineException e )
        {
            if ( e.getCause() instanceof InterruptedException )
            {
View Full Code Here

Examples of org.apache.continuum.utils.shell.ExecutionResult

        final String cmd =
            "chroot /home/xx " + " /bin/sh -c 'cd /dir1/dir2/workingdir/" + project.getId() + " && " + executable +
                " " + arguments + "'";

        final ExecutionResult result = new ExecutionResult( 0 );

        context.checking( new Expectations()
        {
            {
                one( helper ).executeShellCommand( chrootJailFile, "sudo", toSystemPath( cmd ), output, project.getId(),
View Full Code Here

Examples of org.apache.maven.continuum.utils.shell.ExecutionResult

        // Execute the build
        // ----------------------------------------------------------------------

        try
        {
            ExecutionResult result = shellCommandHelper.executeShellCommand( workingDirectory, actualExecutable,
                                                                             arguments, output, project.getId(),
                                                                             environments );

            getLogger().info( "Exit code: " + result.getExitCode() );

            return new ContinuumBuildExecutionResult( output, result.getExitCode() );
        }
        catch ( CommandLineException e )
        {
            if ( e.getCause() instanceof InterruptedException )
            {
View Full Code Here

Examples of org.apache.qpid.transport.ExecutionResult

        protected <T> Future<T> invoke(Method m, Class<T> klass)
        {
            int commandId = getCommandsOut();
            Future<T> future = super.invoke(m, klass);
            ExecutionResult result = new ExecutionResult();
            result.setCommandId(commandId);
            if (m instanceof ExchangeBound)
            {
                ExchangeBoundResult struc = new ExchangeBoundResult();
                struc.setQueueNotFound(true);
                result.setValue(struc);
            }
            else if (m instanceof ExchangeQuery)
            {
                ExchangeQueryResult struc = new ExchangeQueryResult();
                result.setValue(struc);
            }
            else if (m instanceof QueueQuery)
            {
                QueueQueryResult struc = new QueueQueryResult();
                result.setValue(struc);
            }
            _delegate.executionResult(this, result);
            return future;
        }
View Full Code Here

Examples of org.apache.sling.hc.core.impl.executor.ExecutionResult

        assertEquals(Result.Status.CRITICAL, result.getStatus());

    }

    private HealthCheckExecutionResult createExecutionResult(String name, String[] testTags, Result result) {
        HealthCheckExecutionResult healthCheckExecutionResult = new ExecutionResult(new HealthCheckMetadata(new DummyHcServiceReference(name, testTags,
                new String[0])), result, 0L);
        return healthCheckExecutionResult;
    }
View Full Code Here

Examples of org.cipres.treebase.framework.ExecutionResult

    if (request.getParameter(ACTION_DELETE) != null) {
      mRowSegmentService.deleteRowSegment(aRowSegment);
    } else {
      System.out.println("MARTIX ROW ID In Submit Button: " + matrixRowId.toString());
      ExecutionResult executionResult = new ExecutionResult();
      boolean test = aRowSegment.validate(executionResult);
      if (test) {
        if (request.getParameter(ACTION_SUBMIT) != null) {
          matrixRow.addSegment(aRowSegment);
          mMatrixRowService.update(matrixRow);
        } else if (request.getParameter(ACTION_UPDATE) != null) {
          mRowSegmentService.update(aRowSegment);
        }
      } else {
        request.setAttribute("errors", executionResult.getErrorMessage());
        return showForm(request, response, bindExp);
      }

    }
View Full Code Here

Examples of org.nebulaframework.benchmark.scimark.grid.ExecutionResult

    double calcTime = 0;
    double execTime = 0;
   
    for (Serializable result : results) {
      if (result instanceof ExecutionResult) {
        ExecutionResult exResult = (ExecutionResult) result;
        cycles += exResult.getCycles();
        calcTime += exResult.getCalculationTime();
        execTime += exResult.getExecutionTime();
      }
    }
   
    double effectiveTime = (calcTime/execTime) * overallTime;
   
 
View Full Code Here

Examples of org.nebulaframework.benchmark.scimark.grid.ExecutionResult

    double calcTime = 0;
    double execTime = 0;
   
    for (Serializable result : results) {
      if (result instanceof ExecutionResult) {
        ExecutionResult exResult = (ExecutionResult) result;
        cycles += exResult.getCycles();
        calcTime += exResult.getCalculationTime();
        execTime += exResult.getExecutionTime();
      }
    }
   
    System.err.println("* MC | Cycles " + cycles);
    System.err.println("* MC | Cal Time" + calcTime);
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.