All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.moskito.webui.tracers.api.TraceAO Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package net.anotheria.moskito.webui.tracers.api;

import java.io.Serializable;
import java.util.List;

/**
 * This class represents a single trace - a call through the tracer.
 *
 * @author lrosenberg
 * @since 05.05.15 00:43
 */
public class TraceAO implements Serializable {
	/**
	 * SerialVersionUID.
	 */
	private static final long serialVersionUID = 2678431427945812133L;


	/**
	 * Id.
	 */
	private String id;
	/**
	 * Call description.
	 */
	private String call;
	/**
	 * Stack trace of the call.
	 */
	private List elements;
	/**
	 * Duration of the call in nanoseconds.
	 */
	private long duration;
    /**
     * Date of trace creation.
     */
    private String created;

	public String getCall() {
		return call;
	}

	public void setCall(String call) {
		this.call = call;
	}

	public long getDuration() {
		return duration;
	}

	public void setDuration(long duration) {
		this.duration = duration;
	}

	public List getElements() {
		return elements;
	}

	public void setElements(List elements) {
		this.elements = elements;
	}

	public int getElementCount(){
		return elements == null ? 0 : elements.size();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy