Examples of ShallowTraceBuilder


Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testWithDupAttributes() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
            .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
                    .setStartNanos(0L)
                    .setPendingNanos(50L)
                    .setEndNanos(100L)
                    .addAttribute("key1", "value1")
                    .addAttribute("key2", "value2")
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testWithNonExistingRemoveAttributes() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
            .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
                    .setStartNanos(0L)
                    .setPendingNanos(50L)
                    .setEndNanos(100L)
                    .removeAttribute("key1")
                    .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleErrorTrace() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("test", ResultType.ERROR)
            .setValue("error value")
            .setStartNanos(0L)
            .setPendingNanos(50L)
            .setEndNanos(100L)
            .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleUnfinishedTrace() throws IOException
  {
    // If we have started a task we also must set the end time
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("test", ResultType.UNFINISHED)
            .setStartNanos(0L)
            .setPendingNanos(50L)
            .setEndNanos(100L)
            .build())
        .buildRoot();
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleWithHiddenTrace() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
            .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
                    .setStartNanos(0L)
                    .setPendingNanos(50L)
                    .setEndNanos(100L)
                    .setHidden(true)
                    .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleTraceWithChild() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("parent", ResultType.SUCCESS)
            .setValue("parent value")
            .setStartNanos(0L)
            .setPendingNanos(100L)
            .setEndNanos(200L)
            .build())
        .addTrace(1, new ShallowTraceBuilder("child", ResultType.SUCCESS)
            .setValue("child value")
            .setStartNanos(50L)
            .setPendingNanos(75L)
            .setEndNanos(100L)
            .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleTraceWithPredecessor() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("successor", ResultType.SUCCESS)
            .setValue("successor value")
            .setStartNanos(100L)
            .setPendingNanos(150L)
            .setEndNanos(200L)
            .build())
        .addTrace(1, new ShallowTraceBuilder("predecessor", ResultType.SUCCESS)
            .setValue("predecessor value")
            .setStartNanos(0L)
            .setPendingNanos(50L)
            .setEndNanos(100L)
            .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.ShallowTraceBuilder

  @Test
  public void testReversibleTraceWithDiamond() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("source", ResultType.SUCCESS)
              .setValue("source value")
              .setStartNanos(0L)
              .setPendingNanos(25L)
              .setEndNanos(50L)
              .build())
        .addTrace(1, new ShallowTraceBuilder("left", ResultType.SUCCESS)
            .setValue("left value")
            .setStartNanos(50L)
            .setPendingNanos(75L)
            .setEndNanos(100L)
            .build())
        .addTrace(2, new ShallowTraceBuilder("right", ResultType.SUCCESS)
            .setValue("right value")
            .setStartNanos(50L)
            .setPendingNanos(75L)
            .setEndNanos(100L)
            .build())
        .addTrace(3, new ShallowTraceBuilder("sink", ResultType.SUCCESS)
            .setValue("sink value")
            .setStartNanos(100L)
            .setPendingNanos(125L)
            .setEndNanos(150L)
            .build())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.