use of org.openremote.model.system.HealthStatusProvider in project openremote by openremote.
the class HealthStatusService method init.
@Override
public void init(Container container) throws Exception {
ServiceLoader.load(HealthStatusProvider.class).forEach(healthStatusProviderList::add);
for (HealthStatusProvider healthStatusProvider : healthStatusProviderList) {
if (healthStatusProvider instanceof ContainerService) {
((ContainerService) healthStatusProvider).init(container);
}
}
container.getService(ManagerWebService.class).addApiSingleton(new StatusResourceImpl(healthStatusProviderList));
}
Aggregations