public class MonitorService extends Object implements org.jboss.msc.service.Service<MonitorService>, DiscoveryService
| Constructor and Description |
|---|
MonitorService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencies(org.jboss.msc.service.ServiceBuilder<MonitorService> bldr)
When this service is being built, this method is called to allow this service
to add whatever dependencies it needs.
|
void |
configure(MonitorServiceConfiguration config)
Configures this service and its internals.
|
void |
discoverAllResourcesForAllManagedServers()
This will build inventory managers for every configured managed
and discover all resources in those managed servers, populating
the inventory managers with the discovered resources.
|
Map<ManagedServer,DMRInventoryManager> |
getDmrServerInventories() |
HawkularMonitorContext |
getHawkularMonitorContext() |
Map<ManagedServer,JMXInventoryManager> |
getJmxServerInventories() |
MonitorService |
getValue() |
boolean |
isMonitorServiceStarted() |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
startMonitorService()
Starts this service.
|
void |
stop(org.jboss.msc.service.StopContext stopContext) |
void |
stopMonitorService()
Stops this service.
|
public MonitorService getValue()
getValue in interface org.jboss.msc.value.Value<MonitorService>public HawkularMonitorContext getHawkularMonitorContext()
public void configure(MonitorServiceConfiguration config)
config - the configuration with all settings needed to start monitoring metricspublic void addDependencies(org.jboss.msc.service.ServiceBuilder<MonitorService> bldr)
bldr - the service builder used to add dependenciespublic boolean isMonitorServiceStarted()
public void start(org.jboss.msc.service.StartContext startContext)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<MonitorService>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext stopContext)
stop in interface org.jboss.msc.service.Service<MonitorService>public void startMonitorService()
public void stopMonitorService()
public Map<ManagedServer,DMRInventoryManager> getDmrServerInventories()
getDmrServerInventories in interface DiscoveryServicepublic Map<ManagedServer,JMXInventoryManager> getJmxServerInventories()
getJmxServerInventories in interface DiscoveryServicepublic void discoverAllResourcesForAllManagedServers()
DiscoveryServicediscoverAllResourcesForAllManagedServers in interface DiscoveryServiceCopyright © 2015 Red Hat, Inc.. All rights reserved.