Interface PerspectiveContext
- All Known Implementing Classes:
- GatewayHook.PerspectiveGatewayContext
public interface PerspectiveContext
Provides a way to find resources shared by all Perspective sessions.
- 
Method SummaryModifier and TypeMethodDescriptionstatic PerspectiveContextget(GatewayContext context) com.google.common.eventbus.EventBusAnEventBusfor the entire Perspective system - events that are gateway-wide.com.codahale.metrics.Timercom.codahale.metrics.Metercom.codahale.metrics.Timerdefault longTimeout, in milliseconds, after the last page of a session is closed, should the session expirecom.inductiveautomation.ignition.common.gson.Gson
- 
Method Details- 
getGatewayContextGatewayContext getGatewayContext()
- 
getExecutorServiceExecutorService getExecutorService()- Returns:
- The shared executor service used by all perspective sessions. Blocking work may be done on this thread pool.
 
- 
getSchedulerScheduledExecutorService getScheduler()- Returns:
- The shared scheduled executor. NO BLOCKING WORK may be done on this pool.
 
- 
getBindingRegistryBindingRegistry getBindingRegistry()- Returns:
- The registry where binding and transform implementations are kept
 
- 
getActionRegistryActionRegistry getActionRegistry()- Returns:
- The registry where action implementations are kept.
 
- 
getProjectCachePerspectiveProjectCache getProjectCache()- Returns:
- The cache that provides access to perspective projects.
 
- 
getEventBuscom.google.common.eventbus.EventBus getEventBus()AnEventBusfor the entire Perspective system - events that are gateway-wide.
- 
getThemeManagerThemeManager getThemeManager()- Returns:
- The Theme Manager
 
- 
getIconManagerIconManager getIconManager()- Returns:
- The Icon Manager
 
- 
getFontManagerFontManager getFontManager()- Returns:
- The Font Manager
 
- 
getSessionTimeoutdefault long getSessionTimeout()Timeout, in milliseconds, after the last page of a session is closed, should the session expire
- 
getSessionMonitorPerspectiveSessionMonitor getSessionMonitor()
- 
getScriptCacheCompiledScriptCache getScriptCache()
- 
getComponentRegistryComponentRegistry getComponentRegistry()
- 
getFetchableCacheFetchableCache getFetchableCache()
- 
getValueCacheValueCache getValueCache()
- 
getComponentModelDelegateRegistryComponentModelDelegateRegistry getComponentModelDelegateRegistry()- Returns:
- the model delegate registry (use to register gateway component models into the store/model messaging API)
 
- 
getScriptTimercom.codahale.metrics.Timer getScriptTimer()
- 
getExpressionTimercom.codahale.metrics.Timer getExpressionTimer()
- 
getPropertyChangeMetercom.codahale.metrics.Meter getPropertyChangeMeter()
- 
get
 
-