Class SessionStats
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
- 
- com.inductiveautomation.perspective.gateway.session.SessionStats
 
 
- 
 public class SessionStats extends AbstractLifecycle 
- 
- 
Constructor SummaryConstructors Constructor Description SessionStats(PerspectiveContext context, java.util.UUID sessionId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTimerContextbeginExpressionTimer()Use this for timing expressions to correctly update both the session timer and the shared global timerMultiTimerContextbeginScriptTimer()Use this for timing scripts to correctly update both the session timer and the shared global timerjava.util.Map<java.lang.String,com.codahale.metrics.Metric>getAllMetrics()com.codahale.metrics.TimergetExpressionTimer()The timer for expressions executed by this session.com.codahale.metrics.TimergetFetchTimer()com.codahale.metrics.MetergetMessagesRecv()com.codahale.metrics.MetergetMessagesSent()java.lang.StringgetPrefix()com.codahale.metrics.MetergetPropertyChanges()com.codahale.metrics.TimergetQueueTaskTimer()com.codahale.metrics.TimergetScriptTimer()The timer for scripts executed by this session.java.lang.Stringname(java.lang.String... names)MetricBuildernewBuilder(java.lang.String name)Returns a builder set up with the registry and correctly prefixed namevoidnotifyPropertyChanged()Call this whenever a property changes.voidnotifyReconnected()protected voidonShutdown()protected voidonStartup()voidregister(java.lang.String name, com.codahale.metrics.Metric metric)voidremove(java.lang.String name)- 
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startup
 
- 
 
- 
- 
- 
Constructor Detail- 
SessionStatspublic SessionStats(PerspectiveContext context, java.util.UUID sessionId) 
 
- 
 - 
Method Detail- 
getPrefixpublic java.lang.String getPrefix() 
 - 
namepublic java.lang.String name(java.lang.String... names) 
 - 
registerpublic void register(java.lang.String name, com.codahale.metrics.Metric metric)
 - 
newBuilderpublic MetricBuilder newBuilder(java.lang.String name) Returns a builder set up with the registry and correctly prefixed name
 - 
removepublic void remove(java.lang.String name) 
 - 
getMessagesRecvpublic com.codahale.metrics.Meter getMessagesRecv() 
 - 
getMessagesSentpublic com.codahale.metrics.Meter getMessagesSent() 
 - 
getQueueTaskTimerpublic com.codahale.metrics.Timer getQueueTaskTimer() 
 - 
getFetchTimerpublic com.codahale.metrics.Timer getFetchTimer() 
 - 
getPropertyChangespublic com.codahale.metrics.Meter getPropertyChanges() 
 - 
notifyPropertyChangedpublic void notifyPropertyChanged() Call this whenever a property changes. Updates both the session property-change meter and the global one.
 - 
notifyReconnectedpublic void notifyReconnected() 
 - 
getScriptTimerpublic com.codahale.metrics.Timer getScriptTimer() The timer for scripts executed by this session. See also @beginScriptTimer
 - 
getExpressionTimerpublic com.codahale.metrics.Timer getExpressionTimer() The timer for expressions executed by this session. See alsobeginExpressionTimer()
 - 
beginScriptTimerpublic MultiTimerContext beginScriptTimer() Use this for timing scripts to correctly update both the session timer and the shared global timer
 - 
beginExpressionTimerpublic MultiTimerContext beginExpressionTimer() Use this for timing expressions to correctly update both the session timer and the shared global timer
 - 
onStartupprotected void onStartup() - Specified by:
- onStartupin class- AbstractLifecycle
 
 - 
onShutdownprotected void onShutdown() - Specified by:
- onShutdownin class- AbstractLifecycle
 
 - 
getAllMetricspublic java.util.Map<java.lang.String,com.codahale.metrics.Metric> getAllMetrics() 
 
- 
 
-