Class ServiceMonitor
java.lang.Object
com.broadleafcommerce.paymentgateway.vendor.service.monitor.ServiceMonitor
-
Field Summary
Modifier and TypeFieldDescriptionprotected StatusHandler
protected Map<ServiceStatusDetectable,
StatusHandler> protected Map<ServiceStatusDetectable,
ServiceStatusType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkService
(ServiceStatusDetectable statusDetectable) checkServiceAOP
(org.aspectj.lang.ProceedingJoinPoint call) protected void
handleStatusChange
(ServiceStatusDetectable serviceStatus, ServiceStatusType serviceStatusType) void
init()
void
setDefaultHandler
(StatusHandler defaultHandler) void
setServiceHandlers
(Map<ServiceStatusDetectable, StatusHandler> serviceHandlers)
-
Field Details
-
serviceHandlers
-
defaultHandler
-
statusMap
-
-
Constructor Details
-
ServiceMonitor
public ServiceMonitor()
-
-
Method Details
-
init
public void init() -
checkServiceAOP
- Throws:
Throwable
-
checkService
-
handleStatusChange
protected void handleStatusChange(ServiceStatusDetectable serviceStatus, ServiceStatusType serviceStatusType) -
getServiceHandlers
-
setServiceHandlers
-
getDefaultHandler
-
setDefaultHandler
-