mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-26 05:06:34 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@549 84d0f5b1-2673-498c-a247-62c4ff18d310
42 lines
819 B
Java
42 lines
819 B
Java
package com.profiler.context.tracer;
|
|
|
|
|
|
public class HippoAnnotation {
|
|
|
|
private final long time;
|
|
private final String value;
|
|
private final Long duration;
|
|
|
|
private EndPoint endPoint;
|
|
|
|
public HippoAnnotation(long time, String value, EndPoint endPoint, Long duration) {
|
|
this.time = time;
|
|
this.value = value;
|
|
this.endPoint = endPoint;
|
|
this.duration = duration;
|
|
}
|
|
|
|
public String getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public void setEndPoint(EndPoint endPoint) {
|
|
this.endPoint = endPoint;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
sb.append("@={");
|
|
sb.append("time=").append(time);
|
|
sb.append(", value=").append(value);
|
|
sb.append(", duration=").append(duration);
|
|
sb.append(", endpoint=").append(endPoint);
|
|
sb.append("}");
|
|
|
|
return sb.toString();
|
|
}
|
|
|
|
}
|