[유치수] [NOBTS] remove Tracer.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@566 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-09-03 10:05:59 +00:00
parent 1b560b995e
commit 455f9c3bba
16 changed files with 227 additions and 476 deletions
+11 -5
View File
@@ -5,9 +5,6 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.profiler.context.tracer.EndPoint;
import com.profiler.context.tracer.HippoAnnotation;
/**
*
* @author netspider
@@ -22,8 +19,9 @@ public class Span {
private String name;
private EndPoint endPoint;
private final List<HippoAnnotation> annotations = new ArrayList<HippoAnnotation>();
private final Set<String> annotationValues = new HashSet<String>();
private final List<HippoBinaryAnnotation> binaryAnnotations = new ArrayList<HippoBinaryAnnotation>(5);
private final List<HippoAnnotation> annotations = new ArrayList<HippoAnnotation>(5);
private final Set<String> annotationValues = new HashSet<String>(5);
public Span(TraceID traceId, String name, EndPoint endPoint) {
this.traceID = traceId;
@@ -37,6 +35,10 @@ public class Span {
return annotations.add(annotation);
}
public boolean addAnnotation(HippoBinaryAnnotation annotation) {
return binaryAnnotations.add(annotation);
}
public int getAnnotationSize() {
return annotations.size();
}
@@ -70,6 +72,10 @@ public class Span {
for (HippoAnnotation annotation : annotations) {
annotation.setEndPoint(endPoint);
}
for (HippoBinaryAnnotation annotation : binaryAnnotations) {
annotation.setEndPoint(endPoint);
}
}
public String toString() {