Commit 1b71fbe3 by 刘宇峰

任务调度程序

1 parent b20ac449
...@@ -21,9 +21,7 @@ public class RestSimpleJob implements SimpleJob { ...@@ -21,9 +21,7 @@ public class RestSimpleJob implements SimpleJob {
@Override @Override
public void execute(ShardingContext shardingContext) { public void execute(ShardingContext shardingContext) {
log.info("Thread ID: {}, 作业分片总数: {}, " + log.info("Thread ID: {}, 分片总数: {}, 当前分片项: {}.当前参数: {},名称: {}.自定义参数: {}",
"当前分片项: {}.当前参数: {}," +
"作业名称: {}.作业自定义参数: {}",
Thread.currentThread().getId(), Thread.currentThread().getId(),
shardingContext.getShardingTotalCount(), shardingContext.getShardingTotalCount(),
shardingContext.getShardingItem(), shardingContext.getShardingItem(),
......
...@@ -21,7 +21,7 @@ public class ShopmallBaseDataSyncJob implements SimpleJob { ...@@ -21,7 +21,7 @@ public class ShopmallBaseDataSyncJob implements SimpleJob {
@Override @Override
public void execute(ShardingContext shardingContext) { public void execute(ShardingContext shardingContext) {
log.info("Thread ID: {}, 分片总数: {}, " + "当前分片项: {}.当前参数: {}," + "名称: {}.自定义参数: {}", log.info("Thread ID: {}, 分片总数: {}, 当前分片项: {}.当前参数: {},名称: {}.自定义参数: {}",
Thread.currentThread().getId(), Thread.currentThread().getId(),
shardingContext.getShardingTotalCount(), shardingContext.getShardingTotalCount(),
shardingContext.getShardingItem(), shardingContext.getShardingItem(),
......
...@@ -21,7 +21,7 @@ public class ShopmallGoodsDataSyncJob implements SimpleJob { ...@@ -21,7 +21,7 @@ public class ShopmallGoodsDataSyncJob implements SimpleJob {
@Override @Override
public void execute(ShardingContext shardingContext) { public void execute(ShardingContext shardingContext) {
log.info("Thread ID: {}, 分片总数: {}, " + "当前分片项: {}.当前参数: {}," + "名称: {}.自定义参数: {}", log.info("Thread ID: {}, 分片总数: {}, 当前分片项: {}.当前参数: {},名称: {}.自定义参数: {}",
Thread.currentThread().getId(), Thread.currentThread().getId(),
shardingContext.getShardingTotalCount(), shardingContext.getShardingTotalCount(),
shardingContext.getShardingItem(), shardingContext.getShardingItem(),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!