public class MonitorService extends Object implements org.jboss.msc.service.Service<MonitorService>
| Constructor and Description |
|---|
MonitorService(MonitorServiceConfiguration bootConfiguration,
org.jboss.as.controller.ProcessType processType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencies(org.jboss.msc.service.ServiceTarget target,
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.
|
DynamicProtocolServices.Builder |
createDynamicProtocolServicesBuilder() |
ProtocolServices.Builder |
createProtocolServicesBuilder() |
DynamicProtocolServices |
getDynamicProtocolServices() |
String |
getFeedId() |
HawkularWildFlyAgentContext |
getHawkularMonitorContext() |
ModelControllerClientFactory |
getLocalModelControllerClientFactory() |
ProtocolServices |
getProtocolServices() |
SchedulerService |
getSchedulerService() |
String |
getTenantId() |
MonitorService |
getValue() |
boolean |
isMonitorServiceStarted() |
void |
registerFeed(String tenantId,
int retryMillis)
Registers the feed with the Hawkular system under the given tenant.
|
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(MonitorServiceConfiguration bootConfiguration, org.jboss.as.controller.ProcessType processType)
public MonitorService getValue()
getValue in interface org.jboss.msc.value.Value<MonitorService>public HawkularWildFlyAgentContext getHawkularMonitorContext()
public void addDependencies(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceBuilder<MonitorService> bldr)
target - the service targetbldr - 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 void registerFeed(String tenantId, int retryMillis) throws Exception
tenantId - the feed is registered under the given tenantIdretryMillis - if >0 the amount of millis to elapse before retryingException - if failed to register feedpublic String getFeedId()
public String getTenantId()
public SchedulerService getSchedulerService()
public ModelControllerClientFactory getLocalModelControllerClientFactory()
public ProtocolServices.Builder createProtocolServicesBuilder()
public DynamicProtocolServices.Builder createDynamicProtocolServicesBuilder()
public ProtocolServices getProtocolServices()
public DynamicProtocolServices getDynamicProtocolServices()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.