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.TimerThe timer for expressions executed by this session.com.codahale.metrics.Timercom.codahale.metrics.Metercom.codahale.metrics.Metercom.codahale.metrics.Metercom.codahale.metrics.Timercom.codahale.metrics.TimerThe timer for scripts executed by this session.newBuilder(String name) Returns a builder set up with the registry and correctly prefixed namevoidCall this whenever a property changes.voidprotected voidprotected voidvoidvoidMethods 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:
onStartupin classAbstractLifecycle
-
onShutdown
protected void onShutdown()- Specified by:
onShutdownin classAbstractLifecycle
-
getAllMetrics
-