Browse Source

处理流程增加:分组计算、测点阈值分析

dev
yfh 1 month ago
parent
commit
6c20470bf6
  1. 21
      node/app/app.go

21
node/app/app.go

@ -6,6 +6,7 @@ import (
"et_analyze" "et_analyze"
"et_cache" "et_cache"
"et_calc" "et_calc"
"et_calc/group"
"et_print" "et_print"
"et_push" "et_push"
"et_sink" "et_sink"
@ -98,28 +99,22 @@ func addWorkStages(nodeStageManage *stages.StageManager) *stages.StageManager {
// 单测点计算 // 单测点计算
calcHandler := et_calc.NewCalcHandler() calcHandler := et_calc.NewCalcHandler()
nodeStageManage.AddStages(calcHandler.GetStage()) nodeStageManage.AddStages(calcHandler.GetStage())
// 滑窗过滤
cacheHandler := et_cache.NewCacheHandler() cacheHandler := et_cache.NewCacheHandler()
nodeStageManage.AddStages(cacheHandler.GetStage()) nodeStageManage.AddStages(cacheHandler.GetStage())
// 测点分组计算
groupCalcHandler := group.NewGroupCalc()
nodeStageManage.AddStages(groupCalcHandler.GetStage())
// Theme 数据存储 // Theme 数据存储
sinkThemeHandler := et_sink.NewSinkThemeHandler() sinkThemeHandler := et_sink.NewSinkThemeHandler()
nodeStageManage.AddStages(sinkThemeHandler.GetStage()) nodeStageManage.AddStages(sinkThemeHandler.GetStage())
// 测点主题数据的阈值分析
// 测点阈值分析
stationAnalyzeHandler := et_analyze.NewThresholdHandler() stationAnalyzeHandler := et_analyze.NewThresholdHandler()
nodeStageManage.AddStages(stationAnalyzeHandler.GetStage()) nodeStageManage.AddStages(stationAnalyzeHandler.GetStage())
// 测点分组计算 // 数据推送
//groupCalcHandler := group.NewGroupCalc()
//nodeStageManage.AddStages(groupCalcHandler.GetStage())
// EsGroupTheme 数据存储
//sinkGroupHandler := et_sink.NewSinkGroupHandler()
//nodeStageManage.AddStages(sinkGroupHandler.GetStage())
//// (阈值分析) 测点主题数据的阈值分析 + 分组计算后数据的阈值分析
//groupAnalyzeHandler := et_analyze.NewThresholdHandler()
//nodeStageManage.AddStages(groupAnalyzeHandler.GetStage())
publishHandler := et_push.NewPushHandler() publishHandler := et_push.NewPushHandler()
nodeStageManage.AddStages(publishHandler.GetStage()) nodeStageManage.AddStages(publishHandler.GetStage())
return nodeStageManage return nodeStageManage

Loading…
Cancel
Save