|
|
@@ -64,7 +64,6 @@ public class UticTrafServerController {
|
|
|
}
|
|
|
public void run() {
|
|
|
final String header = "==========================================================================================================";
|
|
|
- final String step = "----------------------------------------------------------------------------------------------------------";
|
|
|
final String completed = "**********************************************************************************************************";
|
|
|
final long start = System.currentTimeMillis();
|
|
|
long tmpStart;
|
|
|
@@ -93,25 +92,21 @@ public class UticTrafServerController {
|
|
|
// 1. ASN 교통정보 이관(TRAFFIC_LOC) 작업
|
|
|
this.asnService.processing();
|
|
|
jobInfo.setAsnEtlpTime(System.currentTimeMillis() - start);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 2. 수집원별 링크 원시 교통정보 조회
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.collectService.processing();
|
|
|
jobInfo.setCollectTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 2. 가공방식에 따른 퓨전 소통정보 생성
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.fusionService.processing();
|
|
|
jobInfo.setFusionTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 3. 결측처리
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.missingService.processing();
|
|
|
jobInfo.setMissingTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 4. 소통정보 저장(TRAFFIC_CENTER_CACHE) 작업
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
@@ -125,7 +120,6 @@ public class UticTrafServerController {
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.saveDwdbService.processing();
|
|
|
jobInfo.setSaveDwdbTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 6. 디버그 정보 출력
|
|
|
this.debugService.processing();
|
|
|
@@ -134,13 +128,11 @@ public class UticTrafServerController {
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.prepareService.processing();
|
|
|
jobInfo.setPrepareTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
|
|
|
// 8. 가공 후 처리
|
|
|
tmpStart = System.currentTimeMillis();
|
|
|
this.prcsAfterService.processing();
|
|
|
jobInfo.setPrcsAfterTime(System.currentTimeMillis() - tmpStart);
|
|
|
- log.info(step);
|
|
|
}
|
|
|
finally {
|
|
|
this.isRunning = false; // 현재 작업이 종료됨을 표시
|
|
|
@@ -153,5 +145,6 @@ public class UticTrafServerController {
|
|
|
ApplicationRepository.addJobInfo(jobInfo);
|
|
|
|
|
|
log.info("<<## 05MIN {} [{}].", LogUtils.elapsedLogLength("정주기 교통정보 가공 End", executionTime, 5), this.prevPrcsTime);
|
|
|
+ log.info(header);
|
|
|
}
|
|
|
}
|