public void exceptionOccurred(Exception exception) { if(partfuture==ret) { partfuture = null; } ret.setExceptionIfUndone(exception); } });
public void exceptionOccurred(Exception exception) { ready[1] = true; if(ready[0] && ready[1]) { ret.setExceptionIfUndone(exception); } } }));
public void exceptionOccurred(Exception exception) { ret.setExceptionIfUndone(exception); } });
public void exceptionOccurred(Exception exception) { if(!found) ret.setExceptionIfUndone(exception); } });
public void exceptionOccurred(Exception exception) { // if(ComponentTreeNode.this.toString().indexOf("Hunter")!=-1) // System.err.println("searchChildren done2e: "+ComponentTreeNode.this); ready[0] = true; if(ready[0] && ready[1]) { ret.setExceptionIfUndone(exception); } } }));
public void exceptionOccurred(Exception exception) { // System.out.println("gloaldelehandler endex"+SUtil.arrayToString(args)); fret.setExceptionIfUndone(exception); } };
public void customResultAvailable(Void result) { // If all threads done, but no result -> set exception. ret.setExceptionIfUndone(new RuntimeException("Cannot retrieve server list.")); } });
public void customResultAvailable(Void result) { // If all threads done, but no result -> set exception. ret.setExceptionIfUndone(new RuntimeException("No server available.")); } });
public void exceptionOccurred(Exception exception) { System.out.println("ex: "+exception); ret.setExceptionIfUndone(exception); }
public void timeEventOccurred(long currenttime) { ret.setExceptionIfUndone(new TimeoutException()); } });
public void customResultAvailable(Void result) { // If all threads done, but no result -> set exception. if(ret.setExceptionIfUndone(new RuntimeException("Cannot retrieve server list."))) { log(Level.INFO, "Relay cannot retrieve server list."); } } });
public void exceptionOccurred(Exception exception) { // Forward timeout exception to future. if(exception instanceof TimeoutException) { fut.setExceptionIfUndone(exception); if(fut instanceof ITerminableFuture<?>) { ((ITerminableFuture)fut).terminate(exception); } } }
protected void checkFinish() { if(ongoing==0 && finished && !ret.isDone()) { ret.setExceptionIfUndone(new SecurityException("Unable to retrieve certificate: "+name)); } } });
public void finished() { if(!found) ret.setExceptionIfUndone(new SecurityException("TTP not found: "+ttpcid.getName())); }
protected void checkFinish() { if(ongoing==0 && finished && !ret.isDone()) { ret.setExceptionIfUndone(new SecurityException("Unable to retrieve certificate: "+name)); } } });
public void finished() { if(!found) ret.setExceptionIfUndone(new SecurityException("TTP not found: "+ttpcid.getName())); }
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) agent.getMicroAgent().getLogger().warning("Awareness agent problem, could not get threadpool service: "+exception); // exception.printStackTrace(); ret.setExceptionIfUndone(exception); } });
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) agent.getMicroAgent().getLogger().warning("Awareness agent problem, could not get threadpool service: "+exception); // exception.printStackTrace(); ret.setExceptionIfUndone(exception); } });
public void customResultAvailable(Void result) { ret.setExceptionIfUndone(new ServiceNotFoundException(type.getTypeName())); } });
public void run() { // System.out.println("TIMEOUT: "+System.currentTimeMillis()+" "+filename); triggered[0] = true; boolean b = finished.setExceptionIfUndone(new TimeoutException(ComponentTest.this+" did not finish in "+timeout+" ms.")); if(b && cid[0]!=null) { cms.destroyComponent(cid[0]); } } }, timeout);