Package com.dianping.cat.message.internal

Examples of com.dianping.cat.message.internal.DefaultTrace


    return tree;
  }

  private Trace newTrace(String type, String name, long timestamp, String status, String data) {
    DefaultTrace trace = new DefaultTrace(type, name);

    trace.setStatus(status);
    trace.addData(data);
    trace.setTimestamp(timestamp);
    return trace;
  }
View Full Code Here


        return parent;
      } else {
        return metric;
      }
    case 'L':
      DefaultTrace trace = new DefaultTrace(type, name);
      String traceStatus = helper.read(buf, TAB);
      String traceData = helper.read(buf, TAB);

      helper.read(buf, LF); // get rid of line feed
      trace.setTimestamp(m_dateHelper.parse(timestamp));
      trace.setStatus(traceStatus);
      trace.addData(traceData);

      if (parent != null) {
        parent.addChild(trace);
        return parent;
      } else {
View Full Code Here

        return parent;
      } else {
        return metric;
      }
    case 'L':
      DefaultTrace trace = new DefaultTrace(type, name);
      String traceStatus = helper.read(ctx, TAB);
      String traceData = helper.read(ctx, TAB);

      helper.read(ctx, LF); // get rid of line feed
      trace.setTimestamp(m_dateHelper.parse(timestamp));
      trace.setStatus(traceStatus);
      trace.addData(traceData);

      if (parent != null) {
        parent.addChild(trace);
        return parent;
      } else {
View Full Code Here

    return tree;
  }

  private Trace newTrace(String type, String name, long timestamp, String status, String data) {
    DefaultTrace trace = new DefaultTrace(type, name);

    trace.setStatus(status);
    trace.addData(data);
    trace.setTimestamp(timestamp);
    return trace;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.message.internal.DefaultTrace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.