package processor

import (
	"be.ems/src/framework/cron"
	"be.ems/src/modules/crontask/processor/backupEtcFromNE"
	"be.ems/src/modules/crontask/processor/delExpiredNeBackup"
	"be.ems/src/modules/crontask/processor/deleteExpiredRecord"
	"be.ems/src/modules/crontask/processor/genNeStateAlarm"
	"be.ems/src/modules/crontask/processor/getStateFromNE"
	monitorsysresource "be.ems/src/modules/crontask/processor/monitor_sys_resource"
)

// InitCronQueue 初始定时任务队列
func InitCronQueue() {
	// 监控-系统资源
	cron.CreateQueue("monitor_sys_resource", monitorsysresource.NewProcessor)
	// delete expired NE backup file
	cron.CreateQueue("delExpiredNeBackup", delExpiredNeBackup.NewProcessor)
	cron.CreateQueue("deleteExpiredRecord", deleteExpiredRecord.NewProcessor)
	cron.CreateQueue("backupEtcFromNE", backupEtcFromNE.NewProcessor)
	cron.CreateQueue("getStateFromNE", getStateFromNE.NewProcessor)
	cron.CreateQueue("genNeStateAlarm", genNeStateAlarm.NewProcessor)
}
