if(fut.getException()!=null) fut.getException().printStackTrace(new PrintWriter(sw)); getLogger().warning("Exception during component cleanup of "+getComponentIdentifier()+": "+fut.getException()); getLogger().info(sw.toString());
value = dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null ? Boolean.TRUE : Boolean.FALSE;
value = dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null ? Boolean.TRUE : Boolean.FALSE;
/** * Get the (cached) cms. */ protected IFuture<IComponentManagementService> getCMS() { // Change comments below to test performance of cached cms vs. direct access. if(getServiceContainer()==null) { System.out.println("container is null: "+component+", "+getComponentIdentifier()); } // return SServiceProvider.getServiceUpwards(getServiceContainer(), IComponentManagementService.class); if(cms==null || cms.getException()!=null) { cms = SServiceProvider.getServiceUpwards(getServiceContainer(), IComponentManagementService.class); } return cms; }
if(con instanceof IFuture<?> && ((IFuture<?>)con).isDone() && ((IFuture<?>)con).getException()==null)
if(con instanceof IFuture<?> && ((IFuture<?>)con).isDone() && ((IFuture<?>)con).getException()==null)
while(ret.isDone() && ret.getException()==null && features.hasNext()) if(ret.getException()!=null)
final boolean create = ((Boolean)val).booleanValue(); final ITransportComponentIdentifier cid = dif.getComponentIdentifier(); final IComponentIdentifier proxy = dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null ? dif.getProxy().get() : null; if(create && dif.getProxy()==null || !create && proxy!=null)
final boolean create = ((Boolean)val).booleanValue(); final IComponentIdentifier cid = dif.getComponentIdentifier(); final IComponentIdentifier proxy = dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null ? dif.getProxy().get(null) : null; if(create && dif.getProxy()==null || !create && proxy!=null)
if(cms==null || cms.getException()!=null)
while(!shutdown && ret.getException()==null && features.hasNext()) if(!shutdown && ret.getException()==null)
if(viewable!=null) if(viewable.isDone() && viewable.getException()==null) if(viewable!=null) if(viewable.isDone() && viewable.getException()==null)
public void resultAvailable(Object result) { // Only need to check, when proxy already created if(dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null) { IComponentIdentifier proxy = dif.getProxy().get(null); IComponentManagementService cms = (IComponentManagementService)result; cms.getComponentDescription(proxy) .addResultListener(new IResultListener<IComponentDescription>() { public void resultAvailable(IComponentDescription result) { } public void exceptionOccurred(Exception exception) { dif.setProxy(null); informListeners(dif); } }); } } public void exceptionOccurred(Exception exception)
/** * Check if local proxy is still available. * @param dif The discovery info. */ public void checkProxy(final DiscoveryInfo dif) { // Only need to check, when proxy already created if(dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null) { IComponentIdentifier proxy = dif.getProxy().get(); cms.getComponentDescription(proxy) .addResultListener(new IResultListener<IComponentDescription>() { public void resultAvailable(IComponentDescription result) { } public void exceptionOccurred(Exception exception) { dif.setProxy(null); informListeners(dif); } }); } }
/** * Check if local proxy is still available. * @param dif The discovery info. */ public void checkProxy(final DiscoveryInfo dif) { // Only need to check, when proxy already created if(dif.getProxy()!=null && dif.getProxy().isDone() && dif.getProxy().getException()==null) { IComponentIdentifier proxy = dif.getProxy().get(null); cms.getComponentDescription(proxy) .addResultListener(new IResultListener<IComponentDescription>() { public void resultAvailable(IComponentDescription result) { } public void exceptionOccurred(Exception exception) { dif.setProxy(null); informListeners(dif); } }); } }