FaultNotificationService.java 973 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.kym.service;
  2. /**
  3. * 故障通知核心服务 —— 检测故障、触发通知、防重复、恢复通知
  4. *
  5. * @author skyline
  6. */
  7. public interface FaultNotificationService {
  8. /**
  9. * 处理设备离线故障
  10. */
  11. void handleOfflineFault(String stationId, String deviceName);
  12. /**
  13. * 处理设备上线恢复
  14. */
  15. void handleOnlineRecovery(String stationId, String deviceName);
  16. /**
  17. * 处理缺水/缺泡沫故障
  18. *
  19. * @param stationId 站点ID
  20. * @param deviceName 设备名称
  21. * @param faultType 故障类型 (water_shortage / foam_shortage)
  22. */
  23. void handleResourceShortage(String stationId, String deviceName, String faultType);
  24. /**
  25. * 处理水/泡沫恢复
  26. */
  27. void handleResourceRecovery(String stationId, String deviceName, String faultType);
  28. /**
  29. * 定时兜底:扫描未通知的故障记录并发送通知
  30. */
  31. void reconcileUnnotifiedFaults();
  32. }