Package com.dianping.cat.message.internal

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


      result.setBuffer(buf);
    }
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("WEB CLUSTER", "GET", 112819) //
              .at(1348374838231L) //
              .after(1300).child(t("QUICKIE SERVICE", "gimme_stuff", 1571)) //
View Full Code Here


    codec.decode(buf, result);
    Assert.assertEquals(tree.toString(), result.toString());
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("\n\nWEBC$$$$LUSTER\t\n", "GET\t\n","This&123123&1231&3&\n\n\n\n&\t\t\t&&&&\n\n\n\n\n\n is test data\t\t\n\n", 112819) //
              .at(1348374838231L) //
              .after(1300).child(t("QUICKIESERVICE", "gimme_stuff", 1571)) //
View Full Code Here

    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    // cost 26
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("URL", "GET", 112819)
              .child(
                    t("PigeonCall",
View Full Code Here

    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    //cost 28
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("WEB CLUSTER", "GET", 112819)
              //
              .at(1348374838231L)
View Full Code Here

    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    //21
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("URL", "GET", 112819)
              //
              .at(1348374838231L)
View Full Code Here

    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    // 21
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {

      @Override
      public MessageHolder define() {
        TransactionHolder t = t("URL", "/index", 112819)
              .child(m("order", "order", "quantity=1"))
View Full Code Here

        / 1000);
    // cost 64
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("WEB CLUSTER", "GET", 112819)
            //
            .at(1348374838231L)
View Full Code Here

    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    //cost 62
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("WEB CLUSTER", "GET", 112819) //
              .at(1348374838231L) //
              .after(1300).child(t("QUICKIE SERVICE", "gimme_stuff", 1571)) //
View Full Code Here

      return report;
    }
  }

  public MessageTree buildMessage() {
    Message message = new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("URL", "GET", 112819)
              .child(
                    t("PigeonCall",
View Full Code Here

import com.dianping.cat.message.spi.internal.DefaultMessageTree;

public class MockMessageTreeBuilder {

  private Transaction mockTransaction() { // for test/debug purpose
    return (Transaction) new MockMessageBuilder() {
      @Override
      public MessageHolder define() {
        TransactionHolder t = t("WEB CLUSTER", "GET", 112819) //
              .at(1348374838231L) //
              .after(1300).child(t("QUICKIE SERVICE", "gimme_stuff", 1571)) //
View Full Code Here

TOP

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

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.