Class SessionStats
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.perspective.gateway.session.SessionStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUse this for timing expressions to correctly update both the session timer and the shared global timerUse this for timing scripts to correctly update both the session timer and the shared global timercom.codahale.metrics.Timer
The timer for expressions executed by this session.com.codahale.metrics.Timer
com.codahale.metrics.Meter
com.codahale.metrics.Meter
com.codahale.metrics.Meter
com.codahale.metrics.Timer
com.codahale.metrics.Timer
The timer for scripts executed by this session.newBuilder
(String name) Returns a builder set up with the registry and correctly prefixed namevoid
Call this whenever a property changes.void
protected void
protected void
void
void
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Constructor Details
-
SessionStats
-
-
Method Details
-
getPrefix
-
name
-
register
-
newBuilder
Returns a builder set up with the registry and correctly prefixed name -
remove
-
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 alsobeginExpressionTimer()
-
beginScriptTimer
Use this for timing scripts to correctly update both the session timer and the shared global timer -
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 classAbstractLifecycle
-
onShutdown
protected void onShutdown()- Specified by:
onShutdown
in classAbstractLifecycle
-
getAllMetrics
-