|
|
@@ -35,6 +35,7 @@ public class LinkTrafSaveUticService implements AbstractProcessService {
|
|
|
|
|
|
private void initialize() {
|
|
|
|
|
|
+ log.info("[INF] {}: Current, Active({}), Next({})", LogUtils.elapsedLog("TRAFFIC_CENTER(VIEW)"), ApplicationRepository.currTrafficCenter, ApplicationRepository.nextTrafficCenter);
|
|
|
this.jobResult.setTableName(ApplicationRepository.nextTrafficCenter);// final long start = System.currentTimeMillis();
|
|
|
this.jobResult.setEffects(0);
|
|
|
this.jobResult.setElapsedTime(0);
|
|
|
@@ -53,7 +54,7 @@ public class LinkTrafSaveUticService implements AbstractProcessService {
|
|
|
// log.info("[INF] {}", LogUtils.elapsedLog("교통정보데이터 가공", System.currentTimeMillis() - start));
|
|
|
}
|
|
|
|
|
|
- @ProcessingElapsed(type="TRAFFIC", name="교통정보 CACHE 저장", starting = true)
|
|
|
+ @ProcessingElapsed(type="TRAFFIC", name="교통정보 저장", starting = true)
|
|
|
@Override
|
|
|
public boolean processing() {
|
|
|
final long start = System.currentTimeMillis();
|
|
|
@@ -81,7 +82,11 @@ public class LinkTrafSaveUticService implements AbstractProcessService {
|
|
|
}
|
|
|
|
|
|
// VIEW 의 source table을 변경한다.
|
|
|
- this.uticRepo.swapTrafficCenterView(ApplicationRepository.nextTrafficCenter);
|
|
|
+ this.uticRepo.swapTrafficCenterView(ApplicationRepository.currTrafficCenter, ApplicationRepository.nextTrafficCenter);
|
|
|
+
|
|
|
+ // 메모리의 TRAFFIC_CENTER Source Table 정보를 변경한다.
|
|
|
+ ApplicationRepository.swapTrafficCenterView();
|
|
|
+ log.info("[INF] {}: Changed, Active({}), Next({})", LogUtils.elapsedLog("TRAFFIC_CENTER(VIEW)"), ApplicationRepository.currTrafficCenter, ApplicationRepository.nextTrafficCenter);
|
|
|
|
|
|
// 모든 작업이 완료된 후 결과를 출력
|
|
|
log.info("[INF] {}", LogUtils.elapsedLog(jobTable, this.jobResult.getEffects(), System.currentTimeMillis() - start));
|