mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-02 02:02:13 +08:00
增加对定时任务的注释和说明文档
This commit is contained in:
@@ -18,4 +18,6 @@ public @interface CustomScheduled {
|
||||
String cron();
|
||||
|
||||
int threadNum() default 1;
|
||||
|
||||
String description() default "";
|
||||
}
|
||||
@@ -22,11 +22,10 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 计算账单
|
||||
* @author zengqiao
|
||||
* @date 20/5/11
|
||||
*/
|
||||
@CustomScheduled(name = "calKafkaBill", cron = "0 0 1 * * *", threadNum = 1)
|
||||
@CustomScheduled(name = "calKafkaBill", cron = "0 0 1 * * *", threadNum = 1, description = "计算账单")
|
||||
public class CalKafkaTopicBill extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CalKafkaTopicBill.class);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 20/6/30
|
||||
*/
|
||||
@CustomScheduled(name = "calRegionCapacity", cron = "0 0 0/12 * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "calRegionCapacity", cron = "0 0 0/12 * * ?", threadNum = 1, description = "计算Region容量")
|
||||
public class CalRegionCapacity extends AbstractScheduledTask<RegionDO> {
|
||||
@Autowired
|
||||
private RegionService regionService;
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.util.Map;
|
||||
* @author zengqiao
|
||||
* @date 20/3/29
|
||||
*/
|
||||
@CustomScheduled(name = "calTopicStatistics", cron = "0 0 0/4 * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "calTopicStatistics", cron = "0 0 0/4 * * ?", threadNum = 5, description = "定时计算Topic统计数据")
|
||||
public class CalTopicStatistics extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CalTopicStatistics.class);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 20/6/2
|
||||
*/
|
||||
@CustomScheduled(name = "flushBrokerTable", cron = "0 0 0/1 * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "flushBrokerTable", cron = "0 0 0/1 * * ?", threadNum = 1, description = "定时刷新BrokerTable数据")
|
||||
public class FlushBrokerTable extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FlushBrokerTable.class);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
* @author zengqiao
|
||||
* @date 20/4/1
|
||||
*/
|
||||
@CustomScheduled(name = "flushExpiredTopic", cron = "0 0 0/5 * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "flushExpiredTopic", cron = "0 0 0/5 * * ?", threadNum = 1, description = "定期更新过期Topic")
|
||||
public class FlushExpiredTopic extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FlushExpiredTopic.class);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
* @author zengqiao
|
||||
* @date 20/9/7
|
||||
*/
|
||||
@CustomScheduled(name = "syncClusterTaskState", cron = "0 0/1 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "syncClusterTaskState", cron = "0 0/1 * * * ?", threadNum = 1, description = "同步更新集群任务状态")
|
||||
@ConditionalOnProperty(prefix = "kcm", name = "enabled", havingValue = "true", matchIfMissing = true)
|
||||
public class SyncClusterTaskState extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SyncClusterTaskState.class);
|
||||
|
||||
@@ -31,7 +31,7 @@ import java.util.concurrent.FutureTask;
|
||||
* @author zengqiao
|
||||
* @date 20/9/14
|
||||
*/
|
||||
@CustomScheduled(name = "newCollectAndPublishCGData", cron = "30 0/1 * * * *", threadNum = 10)
|
||||
@CustomScheduled(name = "newCollectAndPublishCGData", cron = "30 0/1 * * * *", threadNum = 10, description = "收集并发布消费者指标数据")
|
||||
public class CollectAndPublishCGData extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CollectAndPublishCGData.class);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 20/7/21
|
||||
*/
|
||||
@CustomScheduled(name = "collectAndPublishCommunityTopicMetrics", cron = "31 0/1 * * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "collectAndPublishCommunityTopicMetrics", cron = "31 0/1 * * * ?", threadNum = 5, description = "Topic社区指标收集")
|
||||
public class CollectAndPublishCommunityTopicMetrics extends AbstractScheduledTask<ClusterDO> {
|
||||
@Autowired
|
||||
private JmxService jmxService;
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 2019-05-10
|
||||
*/
|
||||
@CustomScheduled(name = "collectAndPublishTopicThrottledMetrics", cron = "11 0/1 * * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "collectAndPublishTopicThrottledMetrics", cron = "11 0/1 * * * ?", threadNum = 5, description = "收集和发布Topic限流信息")
|
||||
public class CollectAndPublishTopicThrottledMetrics extends AbstractScheduledTask<ClusterDO> {
|
||||
@Autowired
|
||||
private ClusterService clusterService;
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.List;
|
||||
* @author zengqiao
|
||||
* @date 20/1/8
|
||||
*/
|
||||
@CustomScheduled(name = "deleteMetrics", cron = "0 0/2 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "deleteMetrics", cron = "0 0/2 * * * ?", threadNum = 1, description = "定期删除Metrics信息")
|
||||
public class DeleteMetrics extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(DeleteMetrics.class);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 20/7/21
|
||||
*/
|
||||
@CustomScheduled(name = "storeDiDiAppTopicMetrics", cron = "41 0/1 * * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "storeDiDiAppTopicMetrics", cron = "41 0/1 * * * ?", threadNum = 5, description = "JMX中获取appId维度的流量信息存DB")
|
||||
@ConditionalOnProperty(prefix = "custom.store-metrics-task.didi", name = "app-topic-metrics-enabled", havingValue = "true", matchIfMissing = true)
|
||||
public class StoreDiDiAppTopicMetrics extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(StoreDiDiAppTopicMetrics.class);
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.util.*;
|
||||
* @author zengqiao
|
||||
* @date 20/7/21
|
||||
*/
|
||||
@CustomScheduled(name = "storeDiDiTopicRequestTimeMetrics", cron = "51 0/1 * * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "storeDiDiTopicRequestTimeMetrics", cron = "51 0/1 * * * ?", threadNum = 5, description = "JMX中获取的TopicRequestTimeMetrics信息存DB")
|
||||
@ConditionalOnProperty(prefix = "custom.store-metrics-task.didi", name = "topic-request-time-metrics-enabled", havingValue = "true", matchIfMissing = true)
|
||||
public class StoreDiDiTopicRequestTimeMetrics extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(StoreDiDiTopicRequestTimeMetrics.class);
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Properties;
|
||||
* @date 20/7/28
|
||||
*/
|
||||
@Component
|
||||
@CustomScheduled(name = "autoHandleTopicOrder", cron = "0 0/1 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "autoHandleTopicOrder", cron = "0 0/1 * * * ?", threadNum = 1, description = "定时自动处理Topic相关工单")
|
||||
@ConditionalOnProperty(prefix = "task.op.order-auto-exec", name = "topic-enabled", havingValue = "true", matchIfMissing = false)
|
||||
public class AutoHandleTopicOrder extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AutoHandleTopicOrder.class);
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.*;
|
||||
* @date 2020/6/12
|
||||
*/
|
||||
@Component
|
||||
@CustomScheduled(name = "automatedHandleOrder", cron = "0 0/1 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "automatedHandleOrder", cron = "0 0/1 * * * ?", threadNum = 1, description = "工单自动化审批")
|
||||
@ConditionalOnProperty(prefix = "task.op.order-auto-exec", name = "app-enabled", havingValue = "true", matchIfMissing = false)
|
||||
public class AutomatedHandleOrder extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AutomatedHandleOrder.class);
|
||||
|
||||
@@ -33,7 +33,7 @@ import java.util.*;
|
||||
* @date 19/12/29
|
||||
*/
|
||||
@Component
|
||||
@CustomScheduled(name = "flushReassignment", cron = "0 0/1 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "flushReassignment", cron = "0 0/1 * * * ?", threadNum = 1, description = "定时处理分区迁移任务")
|
||||
public class FlushReassignment extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FlushReassignment.class);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.stream.Collectors;
|
||||
* @date 19/12/29
|
||||
*/
|
||||
@Component
|
||||
@CustomScheduled(name = "syncTopic2DB", cron = "0 0/2 * * * ?", threadNum = 1)
|
||||
@CustomScheduled(name = "syncTopic2DB", cron = "0 0/2 * * * ?", threadNum = 1, description = "定期将未落盘的Topic刷新到DB中")
|
||||
@ConditionalOnProperty(prefix = "task.op", name = "sync-topic-enabled", havingValue = "true", matchIfMissing = false)
|
||||
public class SyncTopic2DB extends AbstractScheduledTask<EmptyEntry> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SyncTopic2DB.class);
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
* @date 20/8/10
|
||||
*/
|
||||
@ConditionalOnProperty(prefix = "monitor", name = "enabled", havingValue = "true", matchIfMissing = true)
|
||||
@CustomScheduled(name = "sinkCommunityTopicMetrics2Monitor", cron = "1 0/1 * * * ?", threadNum = 5)
|
||||
@CustomScheduled(name = "sinkCommunityTopicMetrics2Monitor", cron = "1 0/1 * * * ?", threadNum = 5, description = "定时上报Topic监控指标")
|
||||
public class SinkCommunityTopicMetrics2Monitor extends AbstractScheduledTask<ClusterDO> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SinkCommunityTopicMetrics2Monitor.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user