use of org.opendaylight.infrautils.diagstatus.ServiceStatusProvider in project infrautils by opendaylight.
the class DiagStatusTestModule method configureBindings.
@Override
protected void configureBindings() throws UnknownHostException {
bind(DiagStatusService.class).to(DiagStatusServiceImpl.class);
bind(new TypeLiteral<List<ServiceStatusProvider>>() {
}).toInstance(Collections.emptyList());
bind(SystemReadyMonitor.class).annotatedWith(OsgiService.class).toInstance(new SystemReadyMonitor() {
@Override
public void registerListener(SystemReadyListener listener) {
// NOOP
}
@Override
public SystemState getSystemState() {
return SystemState.ACTIVE;
}
});
bind(DiagStatusServiceMBean.class).to(DiagStatusServiceMBeanImpl.class);
}
use of org.opendaylight.infrautils.diagstatus.ServiceStatusProvider in project infrautils by opendaylight.
the class DiagStatusServiceImpl method updateServiceStatusMap.
private void updateServiceStatusMap() {
for (ServiceStatusProvider serviceReference : serviceStatusProviders) {
ServiceDescriptor serviceDescriptor = serviceReference.getServiceDescriptor();
statusMap.put(serviceDescriptor.getModuleServiceName(), serviceDescriptor);
}
}
Aggregations