[강운덕] [LUCYSUS-1744] annotation을 datatype 을 자동 인코딩 하도록 변경.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@886 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2012-11-21 02:54:07 +00:00
parent 25979ef91d
commit a3a05aa21c
2 changed files with 3 additions and 2 deletions
@@ -1,5 +1,6 @@
package com.profiler.context;
@Deprecated
public enum Annotation {
@Deprecated
ClientSend("CS"),
@@ -7,7 +7,7 @@ import com.profiler.common.util.AnnotationTranscoder;
*/
public class HippoAnnotation implements Thriftable {
private static final AnnotationTranscoder transCoder = new AnnotationTranscoder();
private static final AnnotationTranscoder transcoder = new AnnotationTranscoder();
private final long timestamp;
private final String key;
@@ -49,7 +49,7 @@ public class HippoAnnotation implements Thriftable {
ann.setKey(key);
// TODO Encode 객체를 생성하지 않도록 변경.
AnnotationTranscoder.Encoded encode = transCoder.encode(value);
AnnotationTranscoder.Encoded encode = transcoder.encode(value);
ann.setValueTypeCode(encode.getValueType());
ann.setValue(encode.getBytes());
return ann;