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.
|
ProtocolServices.Builder |
createProtocolServicesBuilder() |
String |
getFeedId() |
HawkularWildFlyAgentContext |
getHawkularMonitorContext() |
ModelControllerClientFactory |
getLocalModelControllerClientFactory() |
ServiceStatus |
getMonitorServiceStatus() |
ProtocolServices |
getProtocolServices() |
SchedulerService |
getSchedulerService() |
String |
getTenantId() |
MonitorService |
getValue() |
boolean |
isImmutable() |
void |
registerFeed(String tenantId,
int retryMillis)
Registers the feed with the Hawkular system under the given tenant.
|
void |
removeInstalledServices(org.jboss.as.controller.OperationContext context) |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
startMonitorService()
Starts this service.
|
void |
startMonitorService(MonitorServiceConfiguration newBootConfiguration)
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 void removeInstalledServices(org.jboss.as.controller.OperationContext context)
public ServiceStatus getMonitorServiceStatus()
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 startMonitorService(MonitorServiceConfiguration newBootConfiguration)
newBootConfiguration - if not null is used to build the runtime configuration. Use this to reflect
changes in the persisted configuration (standalone.xml) since service creation.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 ProtocolServices getProtocolServices()
public boolean isImmutable()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.