public class HealthStatusService extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Modifier and Type | Method and Description |
---|---|
void |
addHealthStatusListener(HealthStatusListener listener)
Registers a HealthStatusListener to receive health status notifications
|
static HealthStatusService |
createAndAddService() |
static HealthStatusService |
getCurrent() |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
static void |
updateCurrentHealthStatus(java.lang.Object source,
HealthStatus status,
java.lang.String message)
Notify all HealthStatusListeners about a change in health status.
|
void |
updateHealthStatus(java.lang.Object source,
HealthStatus status,
java.lang.String message)
Notify all HealthStatusListeners about a change in health status.
|
destroy, getStopPriority, isActive, preCreate, start, stop, toString
public static final int START_PRIORITY
public static HealthStatusService createAndAddService()
public static HealthStatusService getCurrent()
public void updateHealthStatus(java.lang.Object source, HealthStatus status, java.lang.String message)
source
- object generating the notification; usually "this"status
- new health statusmessage
- health status messagepublic static void updateCurrentHealthStatus(java.lang.Object source, HealthStatus status, java.lang.String message)
source
- object generating the notification; usually "this"status
- new health statusmessage
- health status messagepublic void addHealthStatusListener(HealthStatusListener listener)
listener
- public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem