@Singleton public class DiagStatusServiceImpl extends Object implements DiagStatusService
Constructor and Description |
---|
DiagStatusServiceImpl(List<ServiceStatusProvider> serviceStatusProviders,
SystemReadyMonitor systemReadyMonitor) |
Modifier and Type | Method and Description |
---|---|
Collection<ServiceDescriptor> |
getAllServiceDescriptors()
Retrieve the status of all services registered so far.
|
ServiceDescriptor |
getServiceDescriptor(String serviceIdentifier)
Retrieve the status of a service specified by the identifier.
|
ServiceStatusSummary |
getServiceStatusSummary()
Retrieve the status of all services registered so far.
|
ServiceRegistration |
register(String serviceIdentifier)
Register a service for status monitoring.
|
void |
report(ServiceDescriptor serviceDescriptor)
Report the status of a service specified by the identifier.
|
@Inject public DiagStatusServiceImpl(List<ServiceStatusProvider> serviceStatusProviders, SystemReadyMonitor systemReadyMonitor)
public ServiceRegistration register(String serviceIdentifier)
DiagStatusService
register
in interface DiagStatusService
serviceIdentifier
- unique identifier for the service being registeredpublic void report(ServiceDescriptor serviceDescriptor)
DiagStatusService
report
in interface DiagStatusService
serviceDescriptor
- description of the service statepublic ServiceDescriptor getServiceDescriptor(String serviceIdentifier)
DiagStatusService
getServiceDescriptor
in interface DiagStatusService
serviceIdentifier
- unique identifier for a servicepublic Collection<ServiceDescriptor> getAllServiceDescriptors()
DiagStatusService
getAllServiceDescriptors
in interface DiagStatusService
public ServiceStatusSummary getServiceStatusSummary()
DiagStatusService
getServiceStatusSummary
in interface DiagStatusService
ServiceStatusSummary
Copyright © 2019 OpenDaylight. All rights reserved.