[강운덕] [LUCYSUS-1744] 멀티플렉싱 기반 구조 개발.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@495 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2012-08-03 09:41:41 +00:00
parent c9a2668267
commit fa53aa6c06
4 changed files with 12 additions and 12 deletions
@@ -3,13 +3,9 @@ package com.profiler.util;
import com.profiler.dto.Header;
import org.apache.thrift.TBase;
import org.apache.thrift.TException;
import org.apache.thrift.TFieldIdEnum;
import org.apache.thrift.protocol.*;
import org.apache.thrift.transport.TMemoryInputTransport;
import org.apache.thrift.transport.TTransportException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
public class HeaderTBaseDeserializer {
private final TProtocol protocol_;
@@ -36,15 +32,15 @@ public class HeaderTBaseDeserializer {
/**
* Deserialize the Thrift object from a byte array.
*
* @param base The object to read into
* @param locator The object to read into
* @param bytes The array to read from
*/
public TBase deserialize(TBaseSelector selector, byte[] bytes) throws TException {
public TBase deserialize(TBaseLocator locator, byte[] bytes) throws TException {
try {
trans_.reset(bytes);
Header header = readHeader();
validate(header);
TBase base = selector.getSelect(header);
TBase base = locator.lookup(header);
base.read(protocol_);
return base;
} finally {