@Override public final void start(AgentContext agentContext) throws Exception { if (agentContext == null) { throw new IllegalArgumentException("Context must not be null"); } else if (getAgentContext() != agentContext) { // Just to be sure... throw new IllegalStateException("Context changed between init and start?!"); } onStart(); }
protected final DownloadHandler getDownloadHandler() { return getAgentContext().getHandler(DownloadHandler.class); }
protected final ScheduledExecutorService getExecutorService() { return getAgentContext().getHandler(ScheduledExecutorService.class); }
protected final ConnectionHandler getConnectionHandler() { return getAgentContext().getHandler(ConnectionHandler.class); }
protected final DeploymentHandler getDeploymentHandler() { return getAgentContext().getHandler(DeploymentHandler.class); }
protected final FeedbackHandler getFeedbackHandler() { return getAgentContext().getHandler(FeedbackHandler.class); }
protected final LoggingHandler getLoggingHandler() { return getAgentContext().getHandler(LoggingHandler.class); }
protected final IdentificationHandler getIdentificationHandler() { return getAgentContext().getHandler(IdentificationHandler.class); }
protected final DiscoveryHandler getDiscoveryHandler() { return getAgentContext().getHandler(DiscoveryHandler.class); }
protected final ConfigurationHandler getConfigurationHandler() { return getAgentContext().getHandler(ConfigurationHandler.class); }
protected final AgentUpdateHandler getAgentUpdateHandler() { return getAgentContext().getHandler(AgentUpdateHandler.class); }
protected final EventsHandler getEventsHandler() { return getAgentContext().getHandler(EventsHandler.class); }
protected final File getWorkDir() { return getAgentContext().getWorkDir(); }