|
@@ -35,14 +35,29 @@ public class CenterCommServerReceiver {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+// log.error("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()) {
|
|
|
- log.info("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ RECV Traffic server job completed.");
|
|
|
+ String prcsTm = ItsUtils.getCurrFiveMinString();
|
|
|
+ String currTm = ItsUtils.getCurrFiveMinString();
|
|
|
+ if (data.getLength() >= CENTER_COMM_DEFINE.INT_TRAFFIC_TIME_SIZE) {
|
|
|
+ ByteBuffer byteBuffer = ByteBuffer.wrap(data.getBody());
|
|
|
+ byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
|
|
+ byte[] recvTm = new byte[CENTER_COMM_DEFINE.INT_TRAFFIC_TIME_SIZE];
|
|
|
+ byteBuffer.get(recvTm);
|
|
|
+ prcsTm = new String(recvTm);
|
|
|
+ if (data.getLength() >= (CENTER_COMM_DEFINE.INT_TRAFFIC_TIME_SIZE+CENTER_COMM_DEFINE.INT_TRAFFIC_TIME_SIZE)) {
|
|
|
+ byteBuffer.get(recvTm);
|
|
|
+ currTm = new String(recvTm);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ log.info("@@@ RECV Traffic server job completed.{}/{}", prcsTm, currTm);
|
|
|
NotifyDto notifyDto = NotifyDto.builder()
|
|
|
.notify("traffic")
|
|
|
- .notifyTm(ItsUtils.getCurrFiveMinString())
|
|
|
+ .notifyTm(currTm)
|
|
|
.notifyCount(0)
|
|
|
- .notifyMsg("traffic")
|
|
|
+ .notifyMsg(prcsTm)
|
|
|
.build();
|
|
|
ItsWebSocketMessage socketMessage = new ItsWebSocketMessage("traffic", notifyDto);
|
|
|
try {
|