Interface GatewayContext
- 
- All Superinterfaces:
- CommonContext,- ExecutionManagerFactory
 - All Known Implementing Classes:
- GatewayContextDecorator
 
 public interface GatewayContext extends CommonContext, ExecutionManagerFactory 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringSERVLET_CONTEXT_KEYThe string key where the instance of GatewayContext is stored under the servlet context object object.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description javax.sql.DataSourcecreateDataSource(java.util.Properties connectionProps)Will create a javax.sql.DataSource that uses connection pooling through apache's DBCP2AlarmManagergetAlarmManager()The alarm manager is the central hub for alarming.AuditManagergetAuditManager()DatasourceManagergetDatasourceManager()default DiagnosticsManagergetDiagnosticsManager()EdgeSystemPropertiesRecordgetEdgeSystemProperties()Convenience function to look up the EdgeSystemPropertiesRecord.ExecutionManagergetExecutionManager()Returns the shared execution manager for the gateway.java.util.concurrent.ExecutorServicegetExecutorService()GatewayNetworkManagergetGatewayAreaNetworkManager()GatewaySessionManagergetGatewaySessionManager()HistoryManagergetHistoryManager()HttpClientManagergetHttpClientManager()IdpAdapterManagergetIdpAdapterManager()ImageManagergetImageManager()java.util.UUIDgetInstanceToken()Returns a UUID that is generated fresh every time the context starts up.LaunchManagergetLaunchManager()LicenseManagergetLicenseManager()DBInterfacegetLocalDBInterface()PersistenceInterfacegetLocalPersistenceInterface()Returns an interface to the persistence system that bypasses redundancy, and goes directly to the internal database.GatewayLoggingManagergetLoggingManager()MessageDispatchManagergetMessageDispatchManager()The MessageDispatchManager is used to send script messages to message handlers running on clients and the Gateway.MetricHistoryManagergetMetricHistoryManager()Returns the MetricHistoryManager, which allows system metric history to be stored for a limited amount of time.com.codahale.metrics.MetricRegistrygetMetricRegistry()Returns the Gateway MetricRegistry, where various metrics like meters and gauges can be accessed.MetricsDashboardsManagergetMetricsDashboardsManager()ModuleManagergetModuleManager()ModuleServicesManagergetModuleServicesManager()NamedQueryManagergetNamedQueryManager()Returns the appropriate named query rpc for the context.NativeLibraryManagergetNativeLibraryManager()TheNativeLibraryManagercan be used to load gateway-scoped native libraries on a ClassLoader that is reachable by all modules.OpcConnectionManagergetOpcManager()PerformanceMonitorgetPerformanceMonitor()PersistenceInterfacegetPersistenceInterface()Returns an interface to the internal database persistence system.GatewayProgressManagergetProgressManager()ProjectManagergetProjectManager()RedundancyManagergetRedundancyManager()java.util.concurrent.ScheduledExecutorServicegetScheduledExecutorService()ScheduleManagergetScheduleManager()Get the manager that holds all of the defined schedules.SchemaUpdatergetSchemaUpdater()SecurityLevelManagergetSecurityLevelManager()SecurityZoneManagergetSecurityZoneManager()SmtpManagergetSmtpManager()ContextStategetState()java.lang.StringgetStateMessage()May return a string describing why the context is in its current stateSyncManagergetSyncManager()SystemManagergetSystemManager()SystemPropertiesRecordgetSystemProperties()Convenience function to look up the SystemPropertiesRecord.GatewayTagHistoryManagergetTagHistoryManager()GatewayTagManagergetTagManager()Returns the manager that provides access to Ignition's tag system.TaskManagergetTaskManager()default TelemetryManagergetTelemetryManager()UserSourceManagergetUserSourceManager()This manager holds all of the configured user sources in the system.java.util.Optional<WebAuthStrategyAdapter>getWebAuthStrategyAdapter(java.lang.String type)Get theWebAuthStrategyAdapterregistered with the given typeWebResourceManagergetWebResourceManager()- 
Methods inherited from interface com.inductiveautomation.ignition.common.model.CommonContextcreateDeserializer, getEdgeEditions, getEventBus, getExpressionFunctionFactory, getLicenseState, getModule, getScriptManager
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.ExecutionManagerFactorycreateExecutionManager, createExecutionManager
 
- 
 
- 
- 
- 
Field Detail- 
SERVLET_CONTEXT_KEYstatic final java.lang.String SERVLET_CONTEXT_KEY The 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 Detail- 
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.
 - 
getInstanceTokenjava.util.UUID 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
 - 
createDataSourcejavax.sql.DataSource createDataSource(java.util.Properties connectionProps) throws java.lang.ExceptionWill create a javax.sql.DataSource that uses connection pooling through apache's DBCP2- Throws:
- java.lang.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.
 - 
getExecutorServicejava.util.concurrent.ExecutorService getExecutorService() 
 - 
getScheduledExecutorServicejava.util.concurrent.ScheduledExecutorService getScheduledExecutorService() 
 - 
getRedundancyManagerRedundancyManager getRedundancyManager() 
 - 
getGatewaySessionManagerGatewaySessionManager getGatewaySessionManager() 
 - 
getModuleServicesManagerModuleServicesManager getModuleServicesManager() 
 - 
getSystemPropertiesSystemPropertiesRecord getSystemProperties() 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); 
 - 
getEdgeSystemPropertiesEdgeSystemPropertiesRecord getEdgeSystemProperties() 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() 
 - 
getSmtpManagerSmtpManager getSmtpManager() 
 - 
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() 
 - 
getStateMessagejava.lang.String 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
 
 - 
getWebAuthStrategyAdapterjava.util.Optional<WebAuthStrategyAdapter> getWebAuthStrategyAdapter(@Nonnull java.lang.String type) Get 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
 
 - 
getTelemetryManagerdefault TelemetryManager getTelemetryManager() - Returns:
- the TelemetryManager used to gather statistics about the os, vm, and Ignition configuration.
 
 - 
getDiagnosticsManagerdefault DiagnosticsManager getDiagnosticsManager() - Returns:
- DiagnosticManager which is capable of providing a diagnostic bundle file
 
 - 
getMetricsDashboardsManagerMetricsDashboardsManager getMetricsDashboardsManager() 
 
- 
 
-