HealthManager Interface Reference

Health Manager.

Inheritance diagram for HealthManager:

Public Member Functions

List< HealthStatusgetCurrentStatusList () throws HealthNotAvailableException, HealthLowLevelException
 Retrieve list of current status. More...
 
List< HealthStatusgetPendingStatusList () throws HealthNotAvailableException, HealthLowLevelException
 Retrieve list of pending status to be reported to the configured WS or endpoint. More...
 
void reportNewStatus (String key, String value, HealthStatusPriority priority) throws HealthNotAvailableException, HealthLowLevelException
 Report a new status to the Health Service, which will be later reported to the configured WS. More...
 
void close ()
 
- Public Member Functions inherited from Manager
String getIp ()
 
String getName ()
 
Boolean isAlive ()
 
void subscribe (ManagerObserver observer) throws CannotSubscribeException
 
void unSubscribe (ManagerObserver observer) throws ObserverNotSubscribedException
 

Member Function Documentation

void close ( )

Closes the health manager. Recommended to finish properly

List<HealthStatus> getCurrentStatusList ( ) throws HealthNotAvailableException, HealthLowLevelException
Returns
a list with the last value of every of the status that have been reported to the Health Service
Exceptions
HealthNotAvailableException
HealthLowLevelException
List<HealthStatus> getPendingStatusList ( ) throws HealthNotAvailableException, HealthLowLevelException
Returns
a list with the pending status to be reported to the configured WS or endpoint
Exceptions
HealthNotAvailableException
HealthLowLevelException
void reportNewStatus ( String  key,
String  value,
HealthStatusPriority  priority 
) throws HealthNotAvailableException, HealthLowLevelException
Exceptions
HealthNotAvailableException
HealthLowLevelException