public void exceptionOccurred(Exception exception) { crl.exceptionOccurred(exception); } });
public void exceptionOccurred(Exception exception) { lis.exceptionOccurred(null); } });
public void exceptionOccurred(Exception exception) { crl.exceptionOccurred(exception); } });
public void exceptionOccurred(Exception exception) { lis.exceptionOccurred(exception); } });
public void exceptionOccurred(Exception exception) { lis.exceptionOccurred(exception); } });
/** * Called when an exception occurred. * @param exception The exception. */ public void exceptionOccurredIfUndone(Exception exception) { undone = true; exceptionOccurred(exception); }
public void exceptionOccurred(Exception exception) { crl.exceptionOccurred(exception); } });
public void exceptionOccurred(Exception exception) { crl.exceptionOccurred(exception); } });
@Override public void exceptionOccurred(Exception exception) { if(failurehandler!=null) { failurehandler.execute(exception); } super.exceptionOccurred(exception); } };
public void resultAvailable(Object result) { try { f.setAccessible(true); f.set(agent, result); lis2.resultAvailable(null); } catch(Exception e) { component.getLogger().warning("Field injection failed: "+e); lis2.exceptionOccurred(e); } }
public void resultAvailable(Object result) { try { f.setAccessible(true); f.set(agent, result); lis2.resultAvailable(null); } catch(Exception e) { getLogger().warning("Field injection failed: "+e); lis2.exceptionOccurred(e); } }
public void resultAvailable(Boolean result) { if(result.booleanValue()) { lis.resultAvailable(new Tuple2<String, RemoteJarFile>(name, tmp)); } else { lis.exceptionOccurred(null); } }
public void exceptionOccurred(Exception e) { if(!(e instanceof ServiceNotFoundException) || f.getAnnotation(AgentService.class).required()) { getLogger().warning("Field injection failed: "+e); lis2.exceptionOccurred(e); } else { if(SReflect.isSupertype(f.getType(), List.class)) { // Call self with empty list as result. resultAvailable(Collections.EMPTY_LIST); } else { // Don't set any value. lis2.resultAvailable(null); } } } });
public void exceptionOccurred(Exception e) { if(!(e instanceof ServiceNotFoundException) || f.getAnnotation(AgentService.class).required()) { component.getLogger().warning("Field injection failed: "+e); lis2.exceptionOccurred(e); } else { // Set empty list on exception (why only list, what about set etc?!) if(SReflect.isSupertype(f.getType(), List.class)) { // Call self with empty list as result. resultAvailable(Collections.EMPTY_LIST); } else { // Don't set any value. lis2.resultAvailable(null); } } } });
public void run() { if(!ret.isDone()) { try { transport.getConnectionManager().ping(adr); ret.setResultIfUndone(adr); } catch(Exception e) { crl.exceptionOccurred(e); } } } });
public void run() { if(!ret.isDone()) { try { transport.getConnectionManager().ping(adr); // System.err.println("selectServer/setResultIfUndone: "+access.getComponentIdentifier()+", "+System.currentTimeMillis()+", "+Thread.currentThread()); ret.setResultIfUndone(adr); } catch(Exception e) { crl.exceptionOccurred(e); } } } });
public void run() { if(!ret.isDone()) { try { String curadrs = transport.getConnectionManager().getServers(adr); log(Level.INFO, "Relay transport got server addresses from: "+adr+", "+curadrs); ret.setResultIfUndone(curadrs); } catch(Exception e) { crl.exceptionOccurred(e); } } } });
public void run() { if(!ret.isDone()) { try { String curadrs = transport.getConnectionManager().getServers(adr); log(Level.INFO, "Relay transport got server addresses from: "+adr+", "+curadrs); // System.err.println("fetchServerAddresses/setResultIfUndone: "+access.getComponentIdentifier()+", "+System.currentTimeMillis()+", "+Thread.currentThread()); ret.setResultIfUndone(curadrs); } catch(Exception e) { crl.exceptionOccurred(e); } } } });
public void run() { if(!ret.isDone()) { try { transport.getConnectionManager().ping(adr); if(ret.setResultIfUndone(adr)) { log(Level.INFO, "Relay transport selected server address: "+adr); } } catch(Exception e) { crl.exceptionOccurred(e); } } } });
public void run() { if(!ret.isDone()) { try { // System.out.println("http get: "+adr); String curadrs = transport.getConnectionManager().getServers(adr); if(ret.setResultIfUndone(curadrs)) { log(Level.INFO, "Relay transport got server addresses from: "+adr+", "+curadrs); } } catch(Exception e) { crl.exceptionOccurred(e); } // finally // { // System.out.println("finished http get: "+adr); // } } } });