Interface GatewayContext
- All Superinterfaces:
- CommonContext,- ExecutionManagerFactory
- All Known Implementing Classes:
- GatewayContextDecorator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe string key where the instance of GatewayContext is stored under the servlet context object object.
- 
Method SummaryModifier and TypeMethodDescriptioncreateDataSource(Properties connectionProps) Will create a javax.sql.DataSource that uses connection pooling through apache's DBCP2The alarm manager is the central hub for alarming.default DiagnosticsManagerDeprecated.Use getSystemPropertiesManager() to access edge gateway system properties.Returns the shared execution manager for the gateway.Returns a UUID that is generated fresh every time the context starts up.Returns an interface to the persistence system that bypasses redundancy, and goes directly to the internal database.The MessageDispatchManager is used to send script messages to message handlers running on clients and the Gateway.Returns the MetricHistoryManager, which allows system metric history to be stored for a limited amount of time.com.codahale.metrics.MetricRegistryReturns the Gateway MetricRegistry, where various metrics like meters and gauges can be accessed.Returns the appropriate named query rpc for the context.TheNativeLibraryManagercan be used to load gateway-scoped native libraries on a ClassLoader that is reachable by all modules.Returns an interface to the internal database persistence system.Get the manager that holds all of the defined schedules.Deprecated.getState()May return a string describing why the context is in its current stateDeprecated.Use getSystemPropertiesManager() to access gateway system properties.The modern way to look up and set gateway system properties.Returns the manager that provides access to Ignition's tag system.default TelemetryManagerThis manager holds all of the configured user sources in the system.Get theWebAuthStrategyAdapterregistered with the given typeMethods inherited from interface com.inductiveautomation.ignition.common.model.CommonContextcreateDeserializer, getEdgeEditions, getEventBus, getExpressionFunctionFactory, getLicenseState, getModule, getScriptManagerMethods inherited from interface com.inductiveautomation.ignition.common.ExecutionManagerFactorycreateExecutionManager, createExecutionManager
- 
Field Details- 
SERVLET_CONTEXT_KEYThe string key where the instance of GatewayContext is stored under the servlet context object object. Servlets can grab the GatewayContext like so:GatewayContext context = (GatewayContext) getServletContext().getAttribute(GatewayContext.SERVLET_CONTEXT_KEY); 
 
- 
- 
Method Details- 
getDatasourceManagerDatasourceManager getDatasourceManager()
- 
getUserSourceManagerUserSourceManager getUserSourceManager()This manager holds all of the configured user sources in the system. User sources are used for authentication and managing users' contact info, schedules, etc.
- 
getSecurityZoneManagerSecurityZoneManager getSecurityZoneManager()
- 
getScheduleManagerScheduleManager getScheduleManager()Get the manager that holds all of the defined schedules. Schedules are used in alarm notification.
- 
getAuditManagerAuditManager getAuditManager()
- 
getAlarmManagerAlarmManager getAlarmManager()The alarm manager is the central hub for alarming. It is generally used for querying, both status and historical, but can also be used to register new alarm events, and subscribe to alarm events.
- 
getInstanceTokenUUID getInstanceToken()Returns a UUID that is generated fresh every time the context starts up.
- 
getLocalDBInterfaceDBInterface getLocalDBInterface()
- 
getPersistenceInterfacePersistenceInterface getPersistenceInterface()Returns an interface to the internal database persistence system. This version of the function (as compared to getLocalPersistenceInterface()) handles additional tasks, such as replicating data to the redundant backup, and is the version that should be used for most tasks.
- 
getLocalPersistenceInterfacePersistenceInterface getLocalPersistenceInterface()Returns an interface to the persistence system that bypasses redundancy, and goes directly to the internal database. In general, this should NOT be used. Instead, most module authors will want to use getPersistenceInterface(). This
- 
createDataSourceWill create a javax.sql.DataSource that uses connection pooling through apache's DBCP2- Throws:
- Exception
 
- 
getSchemaUpdaterSchemaUpdater getSchemaUpdater()
- 
getExecutionManagerExecutionManager getExecutionManager()Returns the shared execution manager for the gateway. Only schedule tasks in here that will not block, which could cause thread starvation.
- 
getExecutorServiceExecutorService getExecutorService()
- 
getScheduledExecutorServiceScheduledExecutorService getScheduledExecutorService()
- 
getRedundancyManagerRedundancyManager getRedundancyManager()
- 
getGatewaySessionManagerGatewaySessionManager getGatewaySessionManager()
- 
getModuleServicesManagerModuleServicesManager getModuleServicesManager()
- 
getSystemPropertiesDeprecated.Use getSystemPropertiesManager() to access gateway system properties. Convenience function to look up the SystemPropertiesRecord. Make sure not to call this if you already have a session open, because you can't open 2 sessions in the same thread. Instead, just use:session.find(SystemPropertiesRecord.META, SQueryMode.SBASIC, 0L); 
- 
getSystemPropertiesManagerSystemPropertiesManager getSystemPropertiesManager()The modern way to look up and set gateway system properties. This method replaces getSystemProperties(), which had a dangerous dependency on a global ORM record holding gateway system properties. Available gateway system properties are listed in the GatewaySystemProperties object. Use one of the Properties in that class to get and set gateway system properties.- Returns:
- the SystemPropertiesManager that can be used to get and set gateway system properties safely.
 
- 
getEdgeSystemPropertiesDeprecated.Use getSystemPropertiesManager() to access edge gateway system properties. Convenience function to look up the EdgeSystemPropertiesRecord. Make sure not to call this if you already have a session open, because you can't open 2 sessions in the same thread. Instead, just use:session.find(EdgeSystemPropertiesRecord.META, SQueryMode.SBASIC, 0L); 
- 
getOpcManagerOpcConnectionManager getOpcManager()
- 
getTagManagerGatewayTagManager getTagManager()Description copied from interface:CommonContextReturns the manager that provides access to Ignition's tag system.- Specified by:
- getTagManagerin interface- CommonContext
 
- 
getTagHistoryManagerGatewayTagHistoryManager getTagHistoryManager()
- 
getHistoryManagerHistoryManager getHistoryManager()
- 
getSmtpManagerDeprecated.Deprecated. UsegetEmailProfileManager().
- 
getEmailProfileManagerEmailProfileManager getEmailProfileManager()
- 
getImageManagerImageManager getImageManager()
- 
getNamedQueryManagerNamedQueryManager getNamedQueryManager()Returns the appropriate named query rpc for the context. In the gateway and client, we only want to use named queries that have been saved. In the designer, we want to use the current version so that reports and bindings can be seen and used for testing before the project is saved.- Returns:
- The correct NamedQueryManager implementation for the scope.
- Since:
- 7.9.3
 
- 
getStateContextState getState()
- 
getStateMessageString getStateMessage()May return a string describing why the context is in its current state
- 
getProjectManagerProjectManager getProjectManager()
- 
getSystemManagerSystemManager getSystemManager()
- 
getModuleManagerModuleManager getModuleManager()
- 
getLicenseManagerLicenseManager getLicenseManager()
- 
getLaunchManagerLaunchManager getLaunchManager()
- 
getPerformanceMonitorPerformanceMonitor getPerformanceMonitor()
- 
getProgressManagerGatewayProgressManager getProgressManager()
- 
getWebResourceManagerWebResourceManager getWebResourceManager()
- 
getNativeLibraryManagerNativeLibraryManager getNativeLibraryManager()TheNativeLibraryManagercan be used to load gateway-scoped native libraries on a ClassLoader that is reachable by all modules.- Returns:
- The NativeLibraryManager.
- Since:
- Ignition 7.3.3
 
- 
getMessageDispatchManagerMessageDispatchManager getMessageDispatchManager()The MessageDispatchManager is used to send script messages to message handlers running on clients and the Gateway.
- 
getGatewayAreaNetworkManagerGatewayNetworkManager getGatewayAreaNetworkManager()
- 
getTaskManagerTaskManager getTaskManager()
- 
getLoggingManagerGatewayLoggingManager getLoggingManager()- Specified by:
- getLoggingManagerin interface- CommonContext
 
- 
getMetricRegistrycom.codahale.metrics.MetricRegistry getMetricRegistry()Returns the Gateway MetricRegistry, where various metrics like meters and gauges can be accessed. *NOTE* if you have registered a metric in MetricHistoryManager, do not delete it directly from MetricRegistry! Use MetricHistoryManager.unregister() instead.
- 
getMetricHistoryManagerMetricHistoryManager getMetricHistoryManager()Returns the MetricHistoryManager, which allows system metric history to be stored for a limited amount of time.
- 
getHttpClientManagerHttpClientManager getHttpClientManager()- Returns:
- the HttpClientManager
 
- 
getSecurityLevelManagerSecurityLevelManager getSecurityLevelManager()- Returns:
- the SecurityLevelManager
 
- 
getIdpAdapterManagerIdpAdapterManager getIdpAdapterManager()- Returns:
- the IdpAdapterManager
 
- 
getWebAuthStrategyAdapterGet theWebAuthStrategyAdapterregistered with the given type- Parameters:
- type- the registered adapter type string
- Returns:
- An Optionalcontaining theWebAuthStrategyAdapterregistered with the given type or an empty Optional if there exists no adapter registered with the given type
 
- 
getSyncManagerSyncManager getSyncManager()- Returns:
- the SyncManagerthat handles syncing data between two systems.
- Since:
- 8.0.5
 
- 
getTelemetryManager- Returns:
- the TelemetryManager used to gather statistics about the os, vm, and Ignition configuration.
 
- 
getDiagnosticsManager- Returns:
- DiagnosticManager which is capable of providing a diagnostic bundle file
 
- 
getMetricsDashboardsManagerMetricsDashboardsManager getMetricsDashboardsManager()
 
-