Class GatewayHook.PerspectiveGatewayContext
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.GatewayHook.PerspectiveGatewayContext
-
- All Implemented Interfaces:
PerspectiveContext
- Enclosing class:
- GatewayHook
public class GatewayHook.PerspectiveGatewayContext extends java.lang.Object implements PerspectiveContext
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveContext
getSessionTimeout
-
-
-
-
Method Detail
-
getGatewayContext
public GatewayContext getGatewayContext()
- Specified by:
getGatewayContext
in interfacePerspectiveContext
-
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService()
- Specified by:
getExecutorService
in interfacePerspectiveContext
- Returns:
- The shared executor service used by all perspective sessions. Blocking work may be done on this thread pool.
-
getQueueExecutorService
public java.util.concurrent.ExecutorService getQueueExecutorService()
-
getScheduler
public java.util.concurrent.ScheduledExecutorService getScheduler()
- Specified by:
getScheduler
in interfacePerspectiveContext
- Returns:
- The shared scheduled executor. NO BLOCKING WORK may be done on this pool.
-
getBindingRegistry
public BindingRegistryImpl getBindingRegistry()
- Specified by:
getBindingRegistry
in interfacePerspectiveContext
- Returns:
- The registry where binding and transform implementations are kept
-
getActionRegistry
public ActionRegistryImpl getActionRegistry()
- Specified by:
getActionRegistry
in interfacePerspectiveContext
- Returns:
- The registry where action implementations are kept.
-
getProjectCache
public PerspectiveProjectCache getProjectCache()
- Specified by:
getProjectCache
in interfacePerspectiveContext
- Returns:
- The cache that provides access to perspective projects.
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()
Description copied from interface:PerspectiveContext
AnEventBus
for the entire Perspective system - events that are gateway-wide.- Specified by:
getEventBus
in interfacePerspectiveContext
-
getThemeManager
public ThemeManagerImpl getThemeManager()
- Specified by:
getThemeManager
in interfacePerspectiveContext
- Returns:
- The Theme Manager
-
getIconManager
public IconManagerImpl getIconManager()
- Specified by:
getIconManager
in interfacePerspectiveContext
- Returns:
- The Icon Manager
-
getFontManager
public FontManagerImpl getFontManager()
- Specified by:
getFontManager
in interfacePerspectiveContext
- Returns:
- The Font Manager
-
getSharedGson
public com.inductiveautomation.ignition.common.gson.Gson getSharedGson()
- Specified by:
getSharedGson
in interfacePerspectiveContext
-
getFetchableCache
public FetchableCache getFetchableCache()
- Specified by:
getFetchableCache
in interfacePerspectiveContext
-
getSessionMonitor
public PerspectiveSessionMonitor getSessionMonitor()
- Specified by:
getSessionMonitor
in interfacePerspectiveContext
-
getScriptCache
public CompiledScriptCacheImpl getScriptCache()
- Specified by:
getScriptCache
in interfacePerspectiveContext
-
getClientHtmlLoader
public ClientHtmlLoader getClientHtmlLoader()
-
getComponentRegistry
public ComponentRegistry getComponentRegistry()
- Specified by:
getComponentRegistry
in interfacePerspectiveContext
-
getComponentModelDelegateRegistry
public ComponentModelDelegateRegistry getComponentModelDelegateRegistry()
- Specified by:
getComponentModelDelegateRegistry
in interfacePerspectiveContext
- Returns:
- the model delegate registry (use to register gateway component models into the store/model messaging API)
-
getScriptTimer
public com.codahale.metrics.Timer getScriptTimer()
- Specified by:
getScriptTimer
in interfacePerspectiveContext
-
getExpressionTimer
public com.codahale.metrics.Timer getExpressionTimer()
- Specified by:
getExpressionTimer
in interfacePerspectiveContext
-
getPropertyChangeMeter
public com.codahale.metrics.Meter getPropertyChangeMeter()
- Specified by:
getPropertyChangeMeter
in interfacePerspectiveContext
-
getValueCache
public ValueCache getValueCache()
- Specified by:
getValueCache
in interfacePerspectiveContext
-
-