public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void exceptionOccurred(Exception exception) { // Continue processing children even if one is terminated ? // processChildNodes(start, provi, context, ret, callstack+1);//, res); ret.setException(exception); } });
/** * Get required services. * @return The services. */ public <T> ITerminableIntermediateFuture<T> getRequiredServices(RequiredServiceInfo info, RequiredServiceBinding binding, boolean rebind, IRemoteFilter<T> filter) { if(info==null) { TerminableIntermediateFuture<T> ret = new TerminableIntermediateFuture<T>(); ret.setException(new IllegalArgumentException("Info must not null.")); return ret; } IRequiredServiceFetcher fetcher = getRequiredServiceFetcher(info.getName()); return fetcher.getServices(info, binding, rebind, filter); }
ret.setException(exception);
tup.getSecondEntity().setException(new RuntimeException(TransferInfo.STATE_REJECTED)); transfers.remove(id); ret = IFuture.DONE;
tup.getSecondEntity().setException(new RuntimeException(TransferInfo.STATE_REJECTED)); transfers.remove(id); ret = IFuture.DONE;
tup.getSecondEntity().setException(new RuntimeException(TransferInfo.STATE_REJECTED)); transfers.remove(id); ret = IFuture.DONE;
/** * Get required services. * @return The services. */ protected <T> ITerminableIntermediateFuture<T> getRequiredServices(RequiredServiceInfo info, RequiredServiceBinding binding, boolean rebind, IAsyncFilter<T> filter) { // if(shutdowned) // { // return new TerminableIntermediateFuture<T>(new ComponentTerminatedException(id)); // } if(info==null) { TerminableIntermediateFuture<T> ret = new TerminableIntermediateFuture<T>(); ret.setException(new IllegalArgumentException("Info must not null.")); return ret; } IRequiredServiceFetcher fetcher = getRequiredServiceFetcher(info.getName()); ITerminableIntermediateFuture<T> fut = fetcher.getServices(info, binding, rebind, filter); return (ITerminableIntermediateFuture<T>)FutureFunctionality.getDelegationFuture(fut, new ComponentFutureFunctionality(getComponent())); }
/** * Get a required services. * @return The services. */ public <T> ITerminableIntermediateFuture<T> getRequiredServices(String name, boolean rebind, IAsyncFilter<T> filter) { // if(shutdowned) // return new TerminableIntermediateFuture<T>(new ComponentTerminatedException(id)); RequiredServiceInfo info = getRequiredServiceInfo(name); if(info==null) { TerminableIntermediateFuture<T> ret = new TerminableIntermediateFuture<T>(); ret.setException(new ServiceNotFoundException(name)); return ret; } else { RequiredServiceBinding binding = info.getDefaultBinding();//getRequiredServiceBinding(name); return getRequiredServices(info, binding, rebind, filter); } }
/** * Get a required services. * @return The services. */ public <T> ITerminableIntermediateFuture<T> getRequiredServices(String name, boolean rebind, IRemoteFilter<T> filter) { if(shutdowned) return new TerminableIntermediateFuture<T>(new ComponentTerminatedException(id)); RequiredServiceInfo info = getRequiredServiceInfo(name); if(info==null) { TerminableIntermediateFuture<T> ret = new TerminableIntermediateFuture<T>(); ret.setException(new ServiceNotFoundException(name)); return ret; } else { RequiredServiceBinding binding = info.getDefaultBinding();//getRequiredServiceBinding(name); return getRequiredServices(info, binding, rebind, filter); } }
ret.setException(exception);