Skip to content

Commit

Permalink
Update SyncerplusWebappApplication.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pingxingshikong authored Jun 11, 2021
1 parent b365af2 commit 638c794
Showing 1 changed file with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ public class SyncerplusWebappApplication {
// ThreadPoolTaskExecutor threadPoolTaskExecutor;


// int info=1;
// @Scheduled(fixedRate = 1000)
// public void outputLogger(){
// log.info("测试日志输出"+info++);
// }
/**
* 推送日志到/topic/pullLogger
*/

/**
@PostConstruct
Expand Down Expand Up @@ -148,43 +140,6 @@ public void run() {
ThreadPoolUtils.exec(new SqliteSettingPersistenceTask());
ThreadPoolUtils.exec(new DbDataCommitTask());
ThreadPoolUtils.exec(new OffsetCommitTask());
// String logFilePath=EnvironmentUtils.searchByKey("syncer.config.path.logfile")+"/"+EnvironmentUtils.searchByKey("syncer.config.path.logfileName");
// ThreadPoolUtils.exec(new TailLogThread(logFilePath));
String md5A="A239";
String md5B="B240";



// Thread threadA=new Thread(new RedisDataMultiSyncTransmissionTask("redis://114.67.100.239:20001?authPassword=redistest0102", "114.67.100.240",20001,md5A,md5B,"A239"));
// Thread threadB=new Thread(new RedisDataMultiSyncTransmissionTask("redis://114.67.100.240:20001?authPassword=redistest0102","114.67.100.239",20001,md5A,md5B,"B240"));

// Thread threadA=new Thread(new RedisDataMultiSyncTransmissionTask("redis://10.0.1.45:20001?authPassword=redistest0102","10.0.1.46",20001,md5A,md5B,"A239"));
// Thread threadB=new Thread(new RedisDataMultiSyncTransmissionTask("redis://10.0.1.46:20001?authPassword=redistest0102","10.0.1.45",20001,md5A,md5B,"B240"));
// threadA.start();
// threadB.start();

// String settingPath = System.getProperty("user.dir") + FileUtils.getSettingName();
// if(FileUtils.existsFile(settingPath)){
//// ConcurrentHashMap<String,ThreadMsgEntity> data=JSON.parseObject(FileUtils.getText(System.getProperty("user.dir")+ FileUtils.getSettingName()),new TypeReference<ConcurrentHashMap<String, ThreadMsgEntity>>() {});
// ConcurrentHashMap<String, ThreadMsgEntity> data= (ConcurrentHashMap<String, ThreadMsgEntity>) FileUtils.FileInputToObject(settingPath);
// for (Map.Entry<String, ThreadMsgEntity> entry:data.entrySet()
// ) {
// ThreadMsgEntity msgEntity=entry.getValue();
// msgEntity.setRList(new ArrayList<>());
// msgEntity.setStatus(ThreadStatusEnum.STOP);
// data.put(entry.getKey(),msgEntity);
// }
// if(data==null){
// data=new ConcurrentHashMap<String,ThreadMsgEntity>(10);
// }
// TaskMsgUtils.setAliveThreadHashMap(data);
//
// }

//
// while(true){
// log.warn("---------------------------------------------------------------------------------------------------------------------------------------");
// }
}


Expand Down

0 comments on commit 638c794

Please sign in to comment.