Class Profiler.Entry

java.lang.Object
org.jpos.util.Profiler.Entry
Enclosing class:
Profiler

public static class Profiler.Entry extends Object
A single timed checkpoint entry recorded by the Profiler.
  • Constructor Details

    • Entry

      public Entry()
      Default constructor — initialises all fields to empty/zero.
  • Method Details

    • setEventName

      public void setEventName(String myEvent)
      Sets the event name for this entry.
      Parameters:
      myEvent - the event label
    • getEventName

      public String getEventName()
      Returns the event name.
      Returns:
      event name
    • setDurationInNanos

      public void setDurationInNanos(long duration)
      Sets the entry duration in nanoseconds.
      Parameters:
      duration - duration in nanoseconds
    • getDuration

      public long getDuration()
      Returns the entry duration in milliseconds.
      Returns:
      duration in milliseconds
    • getDurationInNanos

      public long getDurationInNanos()
      Returns the raw entry duration in nanoseconds.
      Returns:
      duration in nanoseconds
    • setTotalDurationInNanos

      public void setTotalDurationInNanos(long totalDuration)
      Sets the total elapsed duration in nanoseconds.
      Parameters:
      totalDuration - total duration in nanoseconds
    • getTotalDuration

      public long getTotalDuration()
      Returns the total elapsed duration in milliseconds.
      Returns:
      total duration in milliseconds
    • getTotalDurationInNanos

      public long getTotalDurationInNanos()
      Returns the raw total elapsed duration in nanoseconds.
      Returns:
      total duration in nanoseconds
    • toString

      public String toString()
      Overrides:
      toString in class Object