public class ServiceMonitor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected StatusHandler |
defaultHandler |
protected java.util.Map<ServiceStatusDetectable,StatusHandler> |
serviceHandlers |
protected java.util.Map<ServiceStatusDetectable,ServiceStatusType> |
statusMap |
| Constructor and Description |
|---|
ServiceMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkService(ServiceStatusDetectable statusDetectable) |
java.lang.Object |
checkServiceAOP(org.aspectj.lang.ProceedingJoinPoint call) |
StatusHandler |
getDefaultHandler() |
java.util.Map<ServiceStatusDetectable,StatusHandler> |
getServiceHandlers() |
protected void |
handleStatusChange(ServiceStatusDetectable serviceStatus,
ServiceStatusType serviceStatusType) |
void |
init() |
void |
setDefaultHandler(StatusHandler defaultHandler) |
void |
setServiceHandlers(java.util.Map<ServiceStatusDetectable,StatusHandler> serviceHandlers) |
protected java.util.Map<ServiceStatusDetectable,StatusHandler> serviceHandlers
protected StatusHandler defaultHandler
protected java.util.Map<ServiceStatusDetectable,ServiceStatusType> statusMap
public void init()
public java.lang.Object checkServiceAOP(org.aspectj.lang.ProceedingJoinPoint call)
throws java.lang.Throwable
java.lang.Throwablepublic void checkService(ServiceStatusDetectable statusDetectable)
protected void handleStatusChange(ServiceStatusDetectable serviceStatus, ServiceStatusType serviceStatusType)
public java.util.Map<ServiceStatusDetectable,StatusHandler> getServiceHandlers()
public void setServiceHandlers(java.util.Map<ServiceStatusDetectable,StatusHandler> serviceHandlers)
public StatusHandler getDefaultHandler()
public void setDefaultHandler(StatusHandler defaultHandler)
Copyright © 2018. All Rights Reserved.