/** * Get the logger. * @return The logger. */ public Logger getLogger() { return access.getLogger(); }
/** * Get the logger. * @return The logger. */ public Logger getLogger() { return agent.getLogger(); }
public void exceptionOccurred(Exception exception) { comp.getLogger().warning("Could not fetch time service in property."); } });
public IFuture<Void> execute(IInternalAccess ia) { ia.getLogger().warning(msg); return IFuture.DONE; } });
public void exceptionOccurred(Exception exception) { comp.getLogger().warning("Could not fetch time service in property."); } });
public void exceptionOccurred(Exception exception) { comp.getLogger().warning("Could not fetch time service in property."); } });
public IFuture<Void> execute(IInternalAccess ia) { logger = ia.getLogger(); logger.log(level, msg); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { logger = ia.getLogger(); logger.log(level, msg); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { ia.getLogger().warning("Exception in stream: "+e.getMessage()); return IFuture.DONE; } });
public void exceptionOccurred(Exception exception) { agent.getLogger().warning("Email fetching error: "+exception.getMessage()); } });
public void exceptionOccurred(Exception exception) { // Todo: fail fast components? StringWriter sw = new StringWriter(); exception.printStackTrace(new PrintWriter(sw)); getComponent().getLogger().severe("Exception during stream processing\n"+sw); } });
public void exceptionOccurred(Exception e) { if(!(e instanceof ServiceNotFoundException) || m.getAnnotation(AgentService.class).required()) { component.getLogger().warning("Method service injection failed: "+e); } } });
/** * Let the awareness know that the transport connected to an address. * @param address The relay address. */ public IFuture<Void> connected(String address) { agent.getLogger().info("Awareness connected: "+address); sendInfo(false); return IFuture.DONE; }
@Override public void execute(Exception e) { component.getLogger().severe("Failure during config plan execution: "+SUtil.getExceptionStacktrace(e)); } }).addResultListener(new DelegationResultListener<Void>(ret));
public void exceptionOccurred(Exception exception) { // exception.printStackTrace(); instance.getLogger().severe("Could not publish: "+service.getServiceIdentifier()+" "+exception.getMessage()); ret.setResult(null); } }));
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException) || !((ComponentTerminatedException)exception).getComponentIdentifier().equals(component.getComponentIdentifier())) { // Todo: fail fast components? StringWriter sw = new StringWriter(); exception.printStackTrace(new PrintWriter(sw)); getComponent().getLogger().severe("Exception during message processing\n"+sw); } } });
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); } });
/** * Execute the task. */ public void doExecute(ITaskContext context, IInternalAccess instance) { String text = (String)context.getParameterValue("text"); Level level = (Level)context.getParameterValue("level"); instance.getLogger().log(level, text); }
public void exceptionOccurred(Exception exception) { // exception.printStackTrace(); getComponent().getLogger().severe("Could not publish: "+service.getServiceIdentifier()+" "+exception.getMessage()); ret.setResult(null); } }));
/** * Start the service. */ @ServiceStart public IFuture<Void> startService() { this.cid = component.getComponentIdentifier().getRoot(); this.logger = component.getLogger(); return IFuture.DONE; }