Class ProgressTraceNed

Object
com.tailf.progress.ProgressTrace
com.tailf.progress.ProgressTraceNed

public class ProgressTraceNed extends ProgressTrace

The purpose of ProgressTraceNed class is to make it easy for a NED to interact with NSO's progress trace framework with the concept of spans.

An new event or span requires a device id and a device phase. The device id is set in the class constructor ProgressTraceNed(Maapi, String), and the device phase is set using setPhase(String) method. For example:
 ProgressTraceNed progress = new ProgressTraceNed(maapi, "mydev");
 progress.setPhase("connect");
 progress.event("connect");
 
See Also: