FtpTool/src/main/java/com/ftptool/sync/job/GitToProdSyncJob.java
dark dcfdc83444 refactor: 收敛同步工具为 Git 直连单 prod-agent 架构
- 重写主设计文档与详细设计文档,移除 FTP 中转方案口径
- 新增 Git 直连架构设计文档,明确单 prod-agent 部署模式
- 将生产侧主同步流程切换为 Git -> PROD 和 PROD -> Git 两条直连链路
- 新增正式调度任务 GitToProdSyncJob 与 ProdToGitSnapshotJob
- 移除 commons-net 主依赖并将 FTP 能力退出主运行面
- 清理 application.properties 中 FTP/ACK 相关公共配置
- 收敛 SyncProperties,删除 FTP 远端目录与 ACK 扫描字段
- 精简 schema.sql,移除 sync_ack 表,仅保留 sync_checkpoint 与 sync_task
- 将 dev-agent、FTP、ACK 相关旧类降级为退役占位实现
- 调整项目命名与默认配置,统一到 Git 直连架构
- 完成编译验证
2026-04-20 14:30:43 +08:00

23 lines
662 B
Java

package com.ftptool.sync.job;
import com.ftptool.sync.orchestrator.ProdSyncCoordinator;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
@Profile("prod-agent")
public class GitToProdSyncJob {
private final ProdSyncCoordinator prodSyncCoordinator;
public GitToProdSyncJob(ProdSyncCoordinator prodSyncCoordinator) {
this.prodSyncCoordinator = prodSyncCoordinator;
}
@Scheduled(cron = "${sync.jobs.prod-git-to-prod.cron}")
public void execute() {
prodSyncCoordinator.syncLatestGitToProd();
}
}