|
@@ -35,6 +35,7 @@ public class RotaUticServerService {
|
|
|
private final RotaUticServerRepository repo;
|
|
private final RotaUticServerRepository repo;
|
|
|
private boolean isRunning = false;
|
|
private boolean isRunning = false;
|
|
|
private boolean isRunningCheckIncident = false;
|
|
private boolean isRunningCheckIncident = false;
|
|
|
|
|
+ private int sendTrafficCount;
|
|
|
|
|
|
|
|
@PostConstruct
|
|
@PostConstruct
|
|
|
private void init() {
|
|
private void init() {
|
|
@@ -101,8 +102,8 @@ public class RotaUticServerService {
|
|
|
return ++result;
|
|
return ++result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- final int trafficCount = traffics.size();
|
|
|
|
|
- log.info("[TRAF] {}: [{}], {} EA.", LogUtils.elapsedLog("NewTraffic"), currTrafficTime, trafficCount);
|
|
|
|
|
|
|
+ this.sendTrafficCount = traffics.size();
|
|
|
|
|
+ log.info("[TRAF] {}: [{}], {} EA.", LogUtils.elapsedLog("NewTraffic"), currTrafficTime, this.sendTrafficCount);
|
|
|
|
|
|
|
|
// 메모리에 현재 교통정보 시각과 교통정보 목록을 저장한다.
|
|
// 메모리에 현재 교통정보 시각과 교통정보 목록을 저장한다.
|
|
|
ApplicationRepository.updateTrafficData(currTrafficTime, traffics);
|
|
ApplicationRepository.updateTrafficData(currTrafficTime, traffics);
|
|
@@ -112,7 +113,7 @@ public class RotaUticServerService {
|
|
|
this.executor.executeSendTraffic(center);
|
|
this.executor.executeSendTraffic(center);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- ApplicationRepository.processState.setSndCnt(trafficCount);
|
|
|
|
|
|
|
+ ApplicationRepository.processState.setSndCnt(this.sendTrafficCount);
|
|
|
|
|
|
|
|
// CENTER_SEND_INFO 로깅
|
|
// CENTER_SEND_INFO 로깅
|
|
|
TbSndLog log = TbSndLog.builder()
|
|
TbSndLog log = TbSndLog.builder()
|
|
@@ -120,7 +121,7 @@ public class RotaUticServerService {
|
|
|
.infoKind(DbmsData.D_INFOTYPE_TRAF)
|
|
.infoKind(DbmsData.D_INFOTYPE_TRAF)
|
|
|
.fromCenterId(ApplicationRepository.CENTER.getCenterId())
|
|
.fromCenterId(ApplicationRepository.CENTER.getCenterId())
|
|
|
.toCenterId(ApplicationRepository.CENTER.getCenterId())
|
|
.toCenterId(ApplicationRepository.CENTER.getCenterId())
|
|
|
- .dataCnt(trafficCount)
|
|
|
|
|
|
|
+ .dataCnt(this.sendTrafficCount)
|
|
|
.clusterId(this.clusterConfig.getId())
|
|
.clusterId(this.clusterConfig.getId())
|
|
|
.build();
|
|
.build();
|
|
|
this.dbmsDataProcess.add(new DbmsData(0, ApplicationRepository.CENTER, DbmsData.DBMS_CENTER_SEND_INFO, "", log, 0));
|
|
this.dbmsDataProcess.add(new DbmsData(0, ApplicationRepository.CENTER, DbmsData.DBMS_CENTER_SEND_INFO, "", log, 0));
|