Class JamonMonitor

    • Constructor Detail

      • JamonMonitor

        public JamonMonitor​(com.jamonapi.Monitor monitor)
        Instantiates a new monitor.
        Parameters:
        monitor - the monitor
    • Method Detail

      • add

        public void add​(double arg0)
        Adds the.
        Parameters:
        arg0 - argument
        See Also:
        Monitor.add(double)
      • disable

        public void disable()
        Disable.
        See Also:
        Monitor.disable()
      • enable

        public void enable()
        Enable.
        See Also:
        Monitor.enable()
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests if given object is equal.
        Overrides:
        equals in class AbstractProfileMonitor
        Parameters:
        obj - the other object to compare
        Returns:
        true if objects are equal
        See Also:
        Object.equals(java.lang.Object)
      • getActive

        public double getActive()
        Gets the active.
        Returns:
        active
        See Also:
        Monitor.getActive()
      • getAvg

        public double getAvg()
        Gets the average.
        Returns:
        average
        See Also:
        Monitor.getAvg()
      • getAvgActive

        public double getAvgActive()
        Gets the active average.
        Returns:
        average active
        See Also:
        Monitor.getAvgActive()
      • getAvgGlobalActive

        public double getAvgGlobalActive()
        Gets the global active average.
        Returns:
        average global active
        See Also:
        Monitor.getAvgGlobalActive()
      • getAvgPrimaryActive

        public double getAvgPrimaryActive()
        Gets the primary active average.
        Returns:
        average primary active
        See Also:
        Monitor.getAvgPrimaryActive()
      • getFirstAccess

        public java.util.Date getFirstAccess()
        Gets the first access.
        Returns:
        first access
        See Also:
        Monitor.getFirstAccess()
      • getHits

        public int getHits()
        Gets the hits.
        Returns:
        number of hits
        See Also:
        Monitor.getHits()
      • getLabel

        public java.lang.String getLabel()
        Gets the label.
        Returns:
        label
        See Also:
        Monitor.getLabel()
      • getLastAccess

        public java.util.Date getLastAccess()
        Gets the last access.
        Returns:
        last access
        See Also:
        Monitor.getLastAccess()
      • getLastValue

        public double getLastValue()
        Gets the last value.
        Returns:
        last value
        See Also:
        Monitor.getLastValue()
      • getListenerType

        public com.jamonapi.ListenerType getListenerType​(java.lang.String listenerType)
        Gets the listener type.
        Parameters:
        listenerType - the listener type
        Returns:
        listener type
        See Also:
        Monitor.getListenerType(java.lang.String)
      • getMax

        public double getMax()
        Gets the max.
        Returns:
        maximum
        See Also:
        Monitor.getMax()
      • getMaxActive

        public double getMaxActive()
        Gets the max active.
        Returns:
        maximal active
        See Also:
        Monitor.getMaxActive()
      • getMin

        public double getMin()
        Gets the min.
        Returns:
        minimum
        See Also:
        Monitor.getMin()
      • getMonKey

        public com.jamonapi.MonKey getMonKey()
        Gets the mon key.
        Returns:
        monitor key
        See Also:
        Monitor.getMonKey()
      • getRange

        public com.jamonapi.Range getRange()
        Gets the range.
        Returns:
        range
        See Also:
        Monitor.getRange()
      • getStdDev

        public double getStdDev()
        Gets the std dev.
        Returns:
        standard dev
        See Also:
        Monitor.getStdDev()
      • getTotal

        public double getTotal()
        Gets the total.
        Returns:
        total
        See Also:
        Monitor.getTotal()
      • getUnits

        public java.lang.String getUnits()
        Gets the units.
        Returns:
        units
        See Also:
        Monitor.getUnits()
      • hasListeners

        public boolean hasListeners()
        Checks for listeners.
        Returns:
        true if object has listeners
        See Also:
        Monitor.hasListeners()
      • isActivityTracking

        public boolean isActivityTracking()
        Checks if is activity tracking.
        Returns:
        activity tracking
        See Also:
        Monitor.isActivityTracking()
      • isEnabled

        public boolean isEnabled()
        Checks if is enabled.
        Returns:
        true if enabled
        See Also:
        Monitor.isEnabled()
      • isPrimary

        public boolean isPrimary()
        Checks if is primary.
        Returns:
        true if primary
        See Also:
        Monitor.isPrimary()
      • reset

        public void reset()
        Reset.
        See Also:
        Monitor.reset()
      • setAccessStats

        public void setAccessStats​(long now)
        Sets the access stats.
        Parameters:
        now - the now
        See Also:
        Monitor.setAccessStats(long)
      • setActive

        public void setActive​(double arg0)
        Sets the active.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setActive(double)
      • setActivityTracking

        public void setActivityTracking​(boolean arg0)
        Sets the activity tracking.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setActivityTracking(boolean)
      • setFirstAccess

        public void setFirstAccess​(java.util.Date arg0)
        Sets the first access.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setFirstAccess(java.util.Date)
      • setHits

        public void setHits​(double arg0)
        Sets the hits.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setHits(double)
      • setLastAccess

        public void setLastAccess​(java.util.Date arg0)
        Sets the last access.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setLastAccess(java.util.Date)
      • setLastValue

        public void setLastValue​(double arg0)
        Sets the last value.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setLastValue(double)
      • setMax

        public void setMax​(double arg0)
        Sets the max.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setMax(double)
      • setMaxActive

        public void setMaxActive​(double arg0)
        Sets the max active.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setMaxActive(double)
      • setMin

        public void setMin​(double arg0)
        Sets the min.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setMin(double)
      • setPrimary

        public void setPrimary​(boolean arg0)
        Sets the primary.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setPrimary(boolean)
      • setTotal

        public void setTotal​(double arg0)
        Sets the total.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setTotal(double)
      • setTotalActive

        public void setTotalActive​(double arg0)
        Sets the total active.
        Parameters:
        arg0 - the arg0
        See Also:
        Monitor.setTotalActive(double)
      • start

        public void start()
        Start.
        See Also:
        Monitor.start()
      • stop

        public void stop()
        Stop.
        See Also:
        Monitor.stop()
      • toString

        public java.lang.String toString()
        To string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        e.g. "JAMon Label=void patterntesting.runtime.monitor.ProfileTest.testProfiler(), Units=ms.:" + " (LastValue=8.0, Hits=1.0, Avg=8.0, Total=8.0, Min=8.0, Max=8.0, Active=1.0, Avg Active=3.0," + " Max Active=2.0, First Access=Sat Dec 27 17:31:09 CET 2008, Last Access=Sat Dec 27 17:31:09 CET 2008)"
        See Also:
        Monitor.toString()