#71 profiler BO에서 메시지 처리 가능하도록 함

1. 반환값 잘못한것 수정
This commit is contained in:
koo-taejin
2014-08-13 18:49:34 +09:00
parent 587819e5fe
commit 025cd471fd
@@ -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);
}