From 025cd471fd31542ae725ea2c399489d2b2bb598e Mon Sep 17 00:00:00 2001 From: koo-taejin Date: Wed, 13 Aug 2014 18:49:34 +0900 Subject: [PATCH] =?UTF-8?q?#71=20profiler=20BO=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=B2=98=EB=A6=AC=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 반환값 잘못한것 수정 --- .../nhn/pinpoint/profiler/receiver/CommandDispatcher.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nhn/pinpoint/profiler/receiver/CommandDispatcher.java b/src/main/java/com/nhn/pinpoint/profiler/receiver/CommandDispatcher.java index d567fc456..213b27828 100644 --- a/src/main/java/com/nhn/pinpoint/profiler/receiver/CommandDispatcher.java +++ b/src/main/java/com/nhn/pinpoint/profiler/receiver/CommandDispatcher.java @@ -87,7 +87,7 @@ public class CommandDispatcher implements MessageListener { logger.info("MessageReceive {} {}", packet, channel); } - TBase deserialize(byte[] payload) { + private TBase deserialize(byte[] payload) { if (payload == null) { logger.warn("Payload may not be null."); return null; @@ -104,7 +104,7 @@ public class CommandDispatcher implements MessageListener { return null; } - byte[] serialize(TBase result) { + private byte[] serialize(TBase result) { if (result == null) { logger.warn("tBase may not be null."); return null; @@ -113,6 +113,7 @@ public class CommandDispatcher implements MessageListener { try { HeaderTBaseSerializer serializer = serializerFactory.createSerializer(); byte[] payload = serializer.serialize(result); + return payload; } catch (TException e) { logger.warn(e.getMessage(), e); }