public class JavaAgentEngine extends AgentCoreEngine implements JavaAgentMXBean
| Constructor and Description |
|---|
JavaAgentEngine(File configFile) |
createProtocolServicesBuilder, getConfiguration, getFeedId, getHawkularAgentContext, getLocalModelControllerClientFactory, getProtocolServices, getSchedulerService, getStatus, getTenantId, isImmutable, startHawkularAgent, startHawkularAgent, stopHawkularAgentpublic void startHawkularAgent(Configuration newConfig)
Configuration)
rather than a Agent Core Engine configuration (AgentCoreEngineConfiguration).
If the original agent configuration indicated the agent should be immutable, this ignores
the given configuration and restarts the agent using the old configuration.
The new configuration will be persisted if the agent was mutable and allowed to change.newConfig - the new configuration to use (may be null which means use the previous configuration).public ConfigManager getConfigurationManager()
protected Map<String,SSLContext> buildTrustOnlySSLContextValues(AgentCoreEngineConfiguration config)
buildTrustOnlySSLContextValues in class AgentCoreEngineprotected Map<String,TrustManager[]> buildTrustOnlyTrustManagersValues(AgentCoreEngineConfiguration config)
buildTrustOnlyTrustManagersValues in class AgentCoreEngineprotected ModelControllerClientFactory buildLocalModelControllerClientFactory()
buildLocalModelControllerClientFactory in class AgentCoreEngineprotected AgentCoreEngineConfiguration loadRuntimeConfiguration(AgentCoreEngineConfiguration config)
loadRuntimeConfiguration in class AgentCoreEngineprotected void cleanupDuringStop()
cleanupDuringStop in class AgentCoreEngineprotected String autoGenerateFeedId() throws Exception
autoGenerateFeedId in class AgentCoreEngineExceptionprotected Map<String,Class<? extends Command<? extends org.hawkular.bus.common.BasicMessage,? extends org.hawkular.bus.common.BasicMessage>>> buildAdditionalCommands()
buildAdditionalCommands in class AgentCoreEnginepublic boolean getImmutable()
getImmutable in interface JavaAgentMXBeanpublic boolean getInContainer()
getInContainer in interface JavaAgentMXBeanpublic void start()
start in interface JavaAgentMXBeanpublic void stop()
stop in interface JavaAgentMXBeanpublic String status()
status in interface JavaAgentMXBeanpublic String fullDiscoveryScan()
fullDiscoveryScan in interface JavaAgentMXBeanpublic String inventoryReport()
inventoryReport in interface JavaAgentMXBeanCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.