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