public void resultAvailable(ITransportComponentIdentifier rcid) { IFuture<T> rsers = rms.getServiceProxy(caller, rcid, type, RequiredServiceInfo.SCOPE_PLATFORM, filter); rsers.addResultListener(new IResultListener<T>() { public void resultAvailable(T result) { ret.setResultIfUndone(result); clis.resultAvailable(null); } public void exceptionOccurred(Exception exception) { clis.resultAvailable(null); } }); }
public void customResultAvailable(IRemoteServiceManagementService rms) { rms.getServiceProxy(cid, type, RequiredServiceInfo.SCOPE_LOCAL) .addResultListener(new DelegationResultListener<T>(ret) { public void customResultAvailable(T result) { if(shutdowned) { ret.setException(new ComponentTerminatedException(id)); } else { ret.setResult((T)BasicServiceInvocationHandler.createRequiredServiceProxy(instance, instance.getExternalAccess(), adapter, (IService)result, null, new RequiredServiceInfo(type), null, realtime)); } } }); } });
public void customResultAvailable(IRemoteServiceManagementService rms) { rms.getServiceProxy(cid, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(new DelegationResultListener(ret)); } });
public void customResultAvailable(IRemoteServiceManagementService rms) { rms.getServiceProxy(cid, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(createResultListener(new DelegationResultListener(ret))); } }));
public void customResultAvailable(IRemoteServiceManagementService rms) { rms.getServiceProxy(cid, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(createResultListener(new DelegationResultListener(ret))); } }));
public void customResultAvailable(IRemoteServiceManagementService rms) { IFuture<IComponentManagementService> fut = rms.getServiceProxy(agent.getComponentIdentifier(), cid, new ClassInfo(IComponentManagementService.class), RequiredServiceInfo.SCOPE_PLATFORM, null); fut.addResultListener(createResultListener(new DelegationResultListener<IComponentManagementService>(ret))); } }));
IFuture<T> fut = rms.getServiceProxy(component.getComponentIdentifier(), cid, new ClassInfo(type), scope, null); fut.addResultListener(new ComponentResultListener<T>(lis, component));
IFuture<T> fut = rms.getServiceProxy(component.getComponentIdentifier(), cid, type, scope, null); fut.addResultListener(new ComponentResultListener<T>(lis, component));
rms.getServiceProxy(component.getComponentIdentifier(), cid, new ClassInfo(type), RequiredServiceInfo.SCOPE_LOCAL, new IAsyncFilter<T>()