|
|
@@ -40,11 +40,11 @@ public class CenterCommServerReceiver {
|
|
|
@Async("centerCommExecutor")
|
|
|
public void run(CENTER_COMM_MESSAGE data) {
|
|
|
if (data == null) {
|
|
|
- log.error("CenterCommServerReceiver: RECV Data Packet NULL");
|
|
|
+ log.error("UDP Data Receive: CenterCommServerReceiver: RECV Data Packet NULL");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- log.info("CenterCommServerReceiver: {}::{}::{}", data.getSendId(), data.getOpCode(), data.getSenderIp());
|
|
|
+ log.info("UDP Data Receive: CenterCommServerReceiver: {}::{}::{}", data.getSendId(), data.getOpCode(), data.getSenderIp());
|
|
|
if (CENTER_COMM_DEFINE.INT_ID_TRAFFIC_SERVER == data.getSendId()) {
|
|
|
if (CENTER_COMM_DEFINE.INT_OP_TRAFFIC_CHANGE == data.getOpCode()) {
|
|
|
String prcsTm = ItsUtils.getCurrFiveMinString();
|
|
|
@@ -61,7 +61,7 @@ public class CenterCommServerReceiver {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- log.info("@@@ RECV Traffic server job completed.{}/{}", prcsTm, currTm);
|
|
|
+ log.info("@@@ RECV Traffic server job completed: {}/{}", prcsTm, currTm);
|
|
|
// 소통정보 메모리 로딩
|
|
|
this.linkManager.loadTraf(true);
|
|
|
this.ifscManager.loadTraf(true);
|
|
|
@@ -79,7 +79,7 @@ public class CenterCommServerReceiver {
|
|
|
ItsWebSocketSessionManager.getInstance().sendBroadcastMessage(socketMessage.getCommand(), new TextMessage(jsonData));
|
|
|
}
|
|
|
catch(JsonProcessingException e){
|
|
|
- log.error("CenterCommServerReceiver: NotifyDto Json parsing Exception: {}", notifyDto);
|
|
|
+ log.error("@@@ RECV Traffic server job completed: CenterCommServerReceiver: NotifyDto Json parsing Exception: {}", notifyDto);
|
|
|
}
|
|
|
}
|
|
|
return;
|
|
|
@@ -101,13 +101,13 @@ public class CenterCommServerReceiver {
|
|
|
//log.info("OP CODE: {}, MsgSeq: {}", opCode, msgSeq);
|
|
|
switch(opCode) {
|
|
|
case CENTER_COMM_DEFINE.INT_OP_PG_STATE_RES:
|
|
|
- log.info("INT_OP_PG_STATE_RES");
|
|
|
+ log.info("RECV VMS Server Message: INT_OP_PG_STATE_RES");
|
|
|
break;
|
|
|
case CENTER_COMM_DEFINE.INT_OP_VMS_FORM_SAVE:
|
|
|
byte[] saveDt = new byte[CENTER_COMM_DEFINE.INT_VMS_MAX_DATETIME];
|
|
|
byteBuffer.get(saveDt);
|
|
|
// VMS 폼을 데이터베이스에 저장(다운로드 결과는 알수 없음)
|
|
|
- log.info("INT_OP_VMS_FORM_SAVE: SaveTime: {}", new String(saveDt));
|
|
|
+ log.info("RECV VMS Server Message: INT_OP_VMS_FORM_SAVE: SaveTime: {}", new String(saveDt));
|
|
|
NotifyDto notifyDto1 = NotifyDto.builder()
|
|
|
.notify("form-save")
|
|
|
.notifyTm(new String(saveDt))
|
|
|
@@ -120,13 +120,13 @@ public class CenterCommServerReceiver {
|
|
|
ItsWebSocketSessionManager.getInstance().sendBroadcastMessage(socketMessage1.getCommand(), new TextMessage(jsonData));
|
|
|
}
|
|
|
catch(JsonProcessingException e){
|
|
|
- log.error("CenterCommServerReceiver: NotifyDto Json parsing Exception: {}", notifyDto1);
|
|
|
+ log.error("RECV VMS Server Message: CenterCommServerReceiver: INT_OP_VMS_FORM_SAVE, NotifyDto Json parsing Exception: {}", notifyDto1);
|
|
|
}
|
|
|
break;
|
|
|
case CENTER_COMM_DEFINE.INT_OP_VMS_FORM_DOWNLOAD:
|
|
|
count = byteBuffer.get();
|
|
|
// VMS 폼 다운로드 결과 데이터베이스 저장
|
|
|
- log.info("INT_OP_VMS_FORM_DOWNLOAD: Count: {} EA", count);
|
|
|
+ log.info("RECV VMS Server Message: INT_OP_VMS_FORM_DOWNLOAD: Count: {} EA", count);
|
|
|
NotifyDto notifyDto2 = NotifyDto.builder()
|
|
|
.notify("form-download")
|
|
|
.notifyTm(ItsUtils.getSysTime())
|
|
|
@@ -139,7 +139,7 @@ public class CenterCommServerReceiver {
|
|
|
ItsWebSocketSessionManager.getInstance().sendBroadcastMessage(socketMessage2.getCommand(), new TextMessage(jsonData));
|
|
|
}
|
|
|
catch(JsonProcessingException e){
|
|
|
- log.error("CenterCommServerReceiver: NotifyDto Json parsing Exception: {}", notifyDto2);
|
|
|
+ log.error("RECV VMS Server Message: CenterCommServerReceiver: INT_OP_VMS_FORM_DOWNLOAD, NotifyDto Json parsing Exception: {}", notifyDto2);
|
|
|
}
|
|
|
/* for (int ii = 0; ii < count; ii++) {
|
|
|
vmsId = new byte[CENTER_COMM_DEFINE.INT_VMS_MAX_ID];
|
|
|
@@ -162,7 +162,7 @@ public class CenterCommServerReceiver {
|
|
|
short normal = byteBuffer.getShort();
|
|
|
short module = byteBuffer.getShort();
|
|
|
count = byteBuffer.get();
|
|
|
- log.info("INT_OP_VMS_STATE_RES: total({}), error({}), normal({}), module({}), count: {} EA.", total, error, normal, module, count);
|
|
|
+ log.info("RECV VMS Server Message: INT_OP_VMS_STATE_RES: total({}), error({}), normal({}), module({}), count: {} EA.", total, error, normal, module, count);
|
|
|
// for (int ii = 0; ii < count; ii++) {
|
|
|
// vmsId = new byte[CENTER_COMM_DEFINE.INT_VMS_MAX_ID];
|
|
|
// byteBuffer.get(vmsId);
|
|
|
@@ -213,7 +213,7 @@ public class CenterCommServerReceiver {
|
|
|
// }
|
|
|
break;
|
|
|
default:
|
|
|
- log.info("INT_ID_VMS_SERVER: Other opCode: {}", opCode);
|
|
|
+ log.info("RECV VMS Server Message: Other opCode: {}", opCode);
|
|
|
break;
|
|
|
}
|
|
|
}
|