public class

TraceContext

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.util.TraceContext

Class Overview

Provides utility methods for waiting for ajax results. To send events from the javascript side, call JIRA.trace(key, args...). To turn on logging:

org.apache.log4j.Logger.getLogger(TraceContext.class).setLevel(org.apache.log4j.Level.DEBUG);

Summary

Public Constructors
TraceContext()
Public Methods
Tracer checkpoint()
Returns a tracer containing the current state of trace list.
TimedCondition condition(Tracer tracer, String key)
Waits for the occurrence of a trace with the given key after the given tracer.
boolean exists(Tracer tracer, String key)
List<Map<StringObject>> getArguments(Tracer tracer, String key)
void waitFor(Tracer tracer, String key)
Waits for the occurrence of a trace with the given key after the given tracer.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TraceContext ()

Public Methods

public Tracer checkpoint ()

Returns a tracer containing the current state of trace list.

public TimedCondition condition (Tracer tracer, String key)

Waits for the occurrence of a trace with the given key after the given tracer.

Parameters
tracer checkpoint. Only traces after this checkpoint will be inspected.
key tracer key to watch for

public boolean exists (Tracer tracer, String key)

public List<Map<StringObject>> getArguments (Tracer tracer, String key)

public void waitFor (Tracer tracer, String key)

Waits for the occurrence of a trace with the given key after the given tracer.

Parameters
tracer checkpoint. Only traces after this checkpoint will be inspected.
key tracer key to watch for