java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.perspective.gateway.session.SessionStats

public class SessionStats extends AbstractLifecycle
  • Constructor Details

  • Method Details

    • getPrefix

      public String getPrefix()
    • name

      public String name(String... names)
    • register

      public void register(String name, com.codahale.metrics.Metric metric)
    • newBuilder

      public MetricBuilder newBuilder(String name)
      Returns a builder set up with the registry and correctly prefixed name
    • remove

      public void remove(String name)
    • getMessagesRecv

      public com.codahale.metrics.Meter getMessagesRecv()
    • getMessagesSent

      public com.codahale.metrics.Meter getMessagesSent()
    • getQueueTaskTimer

      public com.codahale.metrics.Timer getQueueTaskTimer()
    • getFetchTimer

      public com.codahale.metrics.Timer getFetchTimer()
    • getPropertyChanges

      public com.codahale.metrics.Meter getPropertyChanges()
    • notifyPropertyChanged

      public void notifyPropertyChanged()
      Call this whenever a property changes. Updates both the session property-change meter and the global one.
    • notifyReconnected

      public void notifyReconnected()
    • getScriptTimer

      public com.codahale.metrics.Timer getScriptTimer()
      The timer for scripts executed by this session. See also @beginScriptTimer
    • getExpressionTimer

      public com.codahale.metrics.Timer getExpressionTimer()
      The timer for expressions executed by this session. See also beginExpressionTimer()
    • beginScriptTimer

      public MultiTimerContext beginScriptTimer()
      Use this for timing scripts to correctly update both the session timer and the shared global timer
    • beginExpressionTimer

      public MultiTimerContext beginExpressionTimer()
      Use this for timing expressions to correctly update both the session timer and the shared global timer
    • onStartup

      protected void onStartup()
      Specified by:
      onStartup in class AbstractLifecycle
    • onShutdown

      protected void onShutdown()
      Specified by:
      onShutdown in class AbstractLifecycle
    • getAllMetrics

      public Map<String,com.codahale.metrics.Metric> getAllMetrics()