Interface DiagStatusService
-
- All Known Implementing Classes:
DiagStatusServiceImpl
public interface DiagStatusServiceDiagStatus ServiceDescriptor which lets users register/retrieve for particular service status details.The term "service" in this context refers to a "higher-level functional service", not an OSGi Service interface. (It could map to an OSGi service interface, or several of them, or none.)
Implementations of this interface are expected to be thread-safe.
- Author:
- Faseela K, Michael Vorburger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<ServiceDescriptor>getAllServiceDescriptors()Retrieve the status of all services registered so far.ServiceDescriptorgetServiceDescriptor(String serviceIdentifier)Retrieve the status of a service specified by the identifier.ServiceStatusSummarygetServiceStatusSummary()Retrieve the status of all services registered so far.ServiceRegistrationregister(String serviceIdentifier)Register a service for status monitoring.voidreport(ServiceDescriptor serviceDescriptor)Report the status of a service specified by the identifier.
-
-
-
Method Detail
-
register
ServiceRegistration register(String serviceIdentifier)
Register a service for status monitoring.- Parameters:
serviceIdentifier- unique identifier for the service being registered- Returns:
- Registration status
-
report
void report(ServiceDescriptor serviceDescriptor)
Report the status of a service specified by the identifier.- Parameters:
serviceDescriptor- description of the service state
-
getServiceDescriptor
ServiceDescriptor getServiceDescriptor(String serviceIdentifier)
Retrieve the status of a service specified by the identifier.- Parameters:
serviceIdentifier- unique identifier for a service
-
getAllServiceDescriptors
Collection<ServiceDescriptor> getAllServiceDescriptors()
Retrieve the status of all services registered so far.- Returns:
- status set for all registered services
-
getServiceStatusSummary
ServiceStatusSummary getServiceStatusSummary()
Retrieve the status of all services registered so far.- Returns:
- status as a
ServiceStatusSummary
-
-