public com.ebmwebsourcing.easyviper.core.api.engine.Execution getParentExecution() { com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = service.getParentExecution(); return ret; }
public com.ebmwebsourcing.easyviper.core.api.engine.Execution getParentExecution() { if ( impl == null ) { throw new java.lang.NullPointerException("Trying to invoke a method on a client or server interface whose complementary interface is not bound."); } com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = impl.getParentExecution(); return ret; }
private void restartExecutionAndParents(Execution execution, ExternalContext context) throws CoreException { Collection<String> threadNames = getAllActiveThreadNames(); Execution.State execState = Execution.State.SUSPENDED; while (execution != null) { // check if there is already a thread running this execution. // we know it because we created each execution thread using execution // hashCode. if (!threadNames.contains(String.valueOf(execution.hashCode())) && execState == Execution.State.SUSPENDED) { log.finest("Spawning (or respawning) thread for execution " + execution.getName()); ThreadRunProcess processThread = new ThreadRunProcess(execution, context);//validExecution.getParentScope().getProcess().getExternalContexts()); processThread.start(); execution = execution.getParentExecution(); if(execution!=null) { execState = execution.getState(); //we wait for the end of the execution only if it's not the main execution try { processThread.join(); } catch (InterruptedException e) { throw new CoreException(e); } } } else { execution = execution.getParentExecution(); if(execution!=null) execState = execution.getState(); } } }
public com.ebmwebsourcing.easyviper.core.api.engine.Execution getParentExecution() { java.util.List<org.ow2.frascati.tinfi.api.IntentHandler> handlers = intentHandlersMap.get(METHODS[9]); try { if( handlers.size() == 0 ) { com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = impl.getParentExecution(); return ret; } else { org.objectweb.fractal.api.Component comp = getFcComponent(); org.objectweb.fractal.api.Interface itf = getFcItf(); org.ow2.frascati.tinfi.IntentJoinPointImpl<com.ebmwebsourcing.easyviper.core.api.engine.Execution> ijp = new org.ow2.frascati.tinfi.IntentJoinPointImpl(); ijp.init(handlers,comp,itf,impl,METHODS[9]); com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = (com.ebmwebsourcing.easyviper.core.api.engine.Execution) ijp.proceed(); return ret; } } catch( Throwable t ) { if( t instanceof RuntimeException ) { throw (RuntimeException) t; } throw new org.ow2.frascati.tinfi.TinfiRuntimeException(t); } }
} else if (this.getParentNode() != null) { this.log.finest("this.getParentNode().getExecution(): " + this.getParentNode().getExecution()); if(this.getExecution().getParentExecution() != null) {
} else if (this.getParentNode() != null) { this.log.finest("this.getParentNode().getExecution(): " + this.getParentNode().getExecution()); if(this.getExecution().getParentExecution() != null) {
try { if( handlers.size() == 0 ) { com.ebmwebsourcing.easyviper.core.api.engine.Execution ret = impl.getParentExecution(); return ret;
if(exec.getParentExecution()==null) { exec.setParentExecution(scope.getExecution());