Examples of ExecutionContextImpl


Examples of com.cognifide.slice.core.internal.execution.ExecutionContextImpl

  public Object get(String className, String path) throws ClassNotFoundException {
    final Key<?> key = classToKeyMapper.getKey(className);
    if (key == null) {
      throw new ClassNotFoundException("key for class " + className + " not found");
    }
    ExecutionContextImpl executionItem = new ExecutionContextImpl(path);
    LOG.debug("creating new instance for {} from {}", new Object[] { key.toString(), path });
    return get(key, executionItem);
  }
View Full Code Here

Examples of com.cognifide.slice.core.internal.execution.ExecutionContextImpl

  public Object get(String className, Resource resource) throws ClassNotFoundException {
    final Key<?> key = classToKeyMapper.getKey(className);
    if (key == null) {
      throw new ClassNotFoundException("key for class " + className + " not found");
    }
    ExecutionContextImpl executionItem = new ExecutionContextImpl(resource);
    LOG.debug("creating new instance for {} from {}", new Object[] { key.toString(), resource });
    return get(key, executionItem);
  }
View Full Code Here

Examples of com.dtolabs.rundeck.core.execution.ExecutionContextImpl

            this.beginStep = beginStep;
            this.stack = stack;
        }

        public NodeStepResult dispatch(final ExecutionContext context, final INodeEntry node) {
            final ExecutionContextImpl newcontext = new ExecutionContextImpl.Builder(context)
                .singleNodeContext(node, true)
                .stepNumber(beginStep)
                .stepContext(stack)
                .build();
            WorkflowExecutionResult result = executor.executeWorkflow(newcontext, workflowItem);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.runtime.ExecutionContextImpl

  public static ProcessObjectFactory init() {
    return new ProcessObjectFactoryImpl();
  }

  public ExecutionContext createExecutionContext(TokenEntity token) {
    ExecutionContextImpl executionContextImpl = new ExecutionContextImpl(token);
    return executionContextImpl;
  }
View Full Code Here

Examples of org.ogce.gfac.context.impl.ExecutionContextImpl

  @Test
  public void testInit() {
    try{
      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());
     
      PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
      service.init();
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

Examples of org.ogce.gfac.context.impl.ExecutionContextImpl

  @Test
  public void testExecute() {
    try{
      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());
           
      ct.getExecutionContext().setNotificationService(new DummyNotification());

      GSISecurityContext gsiSecurityContext = new GSISecurityContext();
      gsiSecurityContext.setMyproxyServer("myproxy.teragrid.org");
View Full Code Here

Examples of org.ogce.gfac.context.impl.ExecutionContextImpl

  @Test
  public void testDispose() {
    try{
      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());     

      PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
      service.dispose();
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

Examples of org.ogce.gfac.context.impl.ExecutionContextImpl

   
    OMElement output = null;

    try {
      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());

      ct.getExecutionContext().setNotificationService(new DummyNotification());

      MessageContext msgContext = MessageContext.getCurrentMessageContext();     
      Map<String, Object> m = (Map)msgContext.getProperty(SECURITY_CONTEXT);
View Full Code Here

Examples of org.openquark.cal.internal.runtime.ExecutionContextImpl

     * Show the state of the suspended CAL program.
     * Currently this displays the function name and the
     * names and values of any arguments.
     */
    private void command_showSuspensionState () {
        ExecutionContextImpl ec = getExecutionContext();
        Map<Thread, SuspensionState> suspensions = ec.getThreadSuspensions();
        if (suspensions.isEmpty()) {
            logInfo("There are no currently suspended threads.");
            return;
        }
       
View Full Code Here

Examples of org.openquark.cal.internal.runtime.ExecutionContextImpl

   
    private void command_terminateExecution (String info) {
        // Set the quit flag for the CAL execution thread and then
        // let it resume execution. This lets the CAL program terminate
        // gracefully.
        ExecutionContextImpl ec = getExecutionContext();
       
        // Remember the state of tracing and then turn it off.
        boolean traceOn = ec.isTracingEnabled();
        ec.setTracingEnabled(false);
       
        Set<String> breakpoints = ec.getBreakpoints();
        ec.clearBreakpoints();      
       
        Set<String> tracedFunctions = ec.getTracedFunctions();
       
        // We want to go into a loop here in case
        // we hit another breakpoint before the machine
        // notices that a quit has been requested.
        while (ec.hasSuspendedThreads()) {
            ec.setStepping(false);
            ICE.this.runThread.requestQuit();
            getDebugController().setShouldBlockUI(true);
            ec.resumeAll();
            getDebugController().blockUntilCompletionOrInterruption();
        }
       
        ec.setTracingEnabled(traceOn);
        ec.setTracedFunctions(tracedFunctions)
        ec.setBreakpoints(breakpoints);            
    }
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.