|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.env.service.AbstractResinSubSystem
com.caucho.env.health.HealthStatusService
public class HealthStatusService
A service that any component can use to send notifications about health status changes. Listeners can register to receive these events.
| Field Summary | |
|---|---|
static int |
START_PRIORITY
|
| Fields inherited from interface com.caucho.env.service.ResinSubSystem |
|---|
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.caucho.env.service.AbstractResinSubSystem |
|---|
destroy, getStopPriority, preCreate, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int START_PRIORITY
| Method Detail |
|---|
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 message
public 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 ResinSubSystemgetStartPriority in class AbstractResinSubSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||