Examples of Trace


Examples of com.linkedin.parseq.trace.Trace

  @Test
  public void testReversibleWithNoAttributes() throws IOException
  {
    Set<String> attributes = new HashSet<String>();

    final Trace trace = new TraceRelationshipBuilder<Integer>()
            .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
                    .setStartNanos(0L)
                    .setPendingNanos(50L)
                    .setEndNanos(100L)
                    .build())
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

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

Examples of com.linkedin.parseq.trace.Trace

  }

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

Examples of com.linkedin.parseq.trace.Trace

  }

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

Examples of com.linkedin.parseq.trace.Trace

  }

  @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")
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @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")
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @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)
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  @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())
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @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)
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @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)
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.