|
@@ -40,11 +40,11 @@ public class CenterCommServerReceiver {
|
|
|
@Async("centerCommExecutor")
|
|
|
public void run(CENTER_COMM_MESSAGE data) {
|
|
|
if (data == null) {
|
|
|
- log.error("UDP Data Receive: CenterCommServerReceiver: RECV Data Packet NULL");
|
|
|
+ log.error("@@@ UDP Data Receive: CenterCommServerReceiver: RECV Data Packet NULL");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- log.info("UDP Data Receive: CenterCommServerReceiver: {}::{}::{}", data.getSendId(), data.getOpCode(), data.getSenderIp());
|
|
|
+ log.info("@@@ -UDP Data Receive: CenterCommServerReceiver: Sender[{}], OpCode[{}], SenderIp[{}]", String.format("0x%02X", data.getSendId()), String.format("0x%02X", 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 TRF Server Message: Processing 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("@@@ RECV Traffic server job completed: CenterCommServerReceiver: NotifyDto Json parsing Exception: {}", notifyDto);
|
|
|
+ log.error("@@@ RECV TRF Server Message: Processing Completed, Exception: {}", notifyDto);
|
|
|
}
|
|
|
}
|
|
|
return;
|
|
@@ -88,7 +88,7 @@ public class CenterCommServerReceiver {
|
|
|
// VMS 통신 서버는 Sender, Receiver 위치가 바뀌었음. ==> 서버 수정했음.
|
|
|
//if (CENTER_COMM_DEFINE.INT_ID_VMS_OPER == data.getSendId() && CENTER_COMM_DEFINE.INT_ID_VMS_SERVER == data.getRecvId()) {
|
|
|
if (CENTER_COMM_DEFINE.INT_ID_VMS_SERVER == data.getSendId()) {
|
|
|
- log.info("RECV VMS Server Message: OpCode: {}, Length: {} Bytes.", data.getOpCode(), data.getLength());
|
|
|
+ //log.info("@@@ RECV VMS Server Message: OpCode: {}, Length: {} Bytes.", data.getOpCode(), data.getLength());
|
|
|
//log.error("VMS PACKET: {}", SysUtils.byteArrayToHex(data.getBody()));
|
|
|
if (data.getLength() > 0) {
|
|
|
ByteBuffer byteBuffer = ByteBuffer.wrap(data.getBody());
|
|
@@ -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("RECV VMS Server Message: 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("RECV VMS Server Message: 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("RECV VMS Server Message: CenterCommServerReceiver: INT_OP_VMS_FORM_SAVE, 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("RECV VMS Server Message: 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("RECV VMS Server Message: CenterCommServerReceiver: INT_OP_VMS_FORM_DOWNLOAD, 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("RECV VMS Server Message: 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);
|