Class GatewayContextDecorator
java.lang.Object
com.inductiveautomation.ignition.gateway.model.GatewayContextDecorator
- All Implemented Interfaces:
ExecutionManagerFactory,CommonContext,GatewayContext
Simple abstract decorator for
GatewayContext-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.model.GatewayContext
SERVLET_CONTEXT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDataSource(Properties connectionProps) Will create a javax.sql.DataSource that uses connection pooling through apache's DBCP2Returns an instance of the XMLDeserializer that can be used to deserialize project resources.createExecutionManager(String name, int threadCount) Creates a new, private execution engine.createExecutionManager(String name, int threadCount, ThreadFactory factory) The alarm manager is the central hub for alarming.Returns a list of currently available Edge editions (either licensed or in trial).com.google.common.eventbus.EventBusThis is a generic event bus that can be used by any part of Ignition within a single scope (jvm)Returns the shared execution manager for the gateway.Returns the core function factory used by expressions.Returns a UUID that is generated fresh every time the context starts up.getLicenseState(String moduleId) Returns the license state for the given moduleReturns 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 hook class for another module, used for modules that deal with each other's models.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.Returns the ScriptManager that can be used to execute Python scripts.Deprecated.getState()May return a string describing why the context is in its current stateThe modern way to look up and set gateway system properties.Returns the manager that provides access to Ignition's tag system.This manager holds all of the configured user sources in the system.Get theWebAuthStrategyAdapterregistered with the given typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.model.GatewayContext
getDiagnosticsManager
-
Constructor Details
-
GatewayContextDecorator
-
-
Method Details
-
getDatasourceManager
- Specified by:
getDatasourceManagerin interfaceGatewayContext
-
getUserSourceManager
Description copied from interface:GatewayContextThis manager holds all of the configured user sources in the system. User sources are used for authentication and managing users' contact info, schedules, etc.- Specified by:
getUserSourceManagerin interfaceGatewayContext
-
getSecurityZoneManager
- Specified by:
getSecurityZoneManagerin interfaceGatewayContext
-
getScheduleManager
Description copied from interface:GatewayContextGet the manager that holds all of the defined schedules. Schedules are used in alarm notification.- Specified by:
getScheduleManagerin interfaceGatewayContext
-
getAuditManager
- Specified by:
getAuditManagerin interfaceGatewayContext
-
getAlarmManager
Description copied from interface:GatewayContextThe 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.- Specified by:
getAlarmManagerin interfaceGatewayContext
-
getInstanceToken
Description copied from interface:GatewayContextReturns a UUID that is generated fresh every time the context starts up.- Specified by:
getInstanceTokenin interfaceGatewayContext
-
getLocalDBInterface
- Specified by:
getLocalDBInterfacein interfaceGatewayContext
-
getPersistenceInterface
Description copied from interface:GatewayContextReturns 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.- Specified by:
getPersistenceInterfacein interfaceGatewayContext
-
getLocalPersistenceInterface
Description copied from interface:GatewayContextReturns 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- Specified by:
getLocalPersistenceInterfacein interfaceGatewayContext
-
createDataSource
Description copied from interface:GatewayContextWill create a javax.sql.DataSource that uses connection pooling through apache's DBCP2- Specified by:
createDataSourcein interfaceGatewayContext- Throws:
Exception
-
getSchemaUpdater
- Specified by:
getSchemaUpdaterin interfaceGatewayContext
-
getExecutionManager
Description copied from interface:GatewayContextReturns the shared execution manager for the gateway. Only schedule tasks in here that will not block, which could cause thread starvation.- Specified by:
getExecutionManagerin interfaceGatewayContext
-
getExecutorService
- Specified by:
getExecutorServicein interfaceGatewayContext
-
getScheduledExecutorService
- Specified by:
getScheduledExecutorServicein interfaceGatewayContext
-
getRedundancyManager
- Specified by:
getRedundancyManagerin interfaceGatewayContext
-
getGatewaySessionManager
- Specified by:
getGatewaySessionManagerin interfaceGatewayContext
-
getModuleServicesManager
- Specified by:
getModuleServicesManagerin interfaceGatewayContext
-
getSystemProperties
- Specified by:
getSystemPropertiesin interfaceGatewayContext
-
getOpcManager
- Specified by:
getOpcManagerin interfaceGatewayContext
-
getTagHistoryManager
- Specified by:
getTagHistoryManagerin interfaceGatewayContext
-
getHistoryManager
- Specified by:
getHistoryManagerin interfaceGatewayContext
-
getSmtpManager
Deprecated.Description copied from interface:GatewayContextDeprecated. UseGatewayContext.getEmailProfileManager().- Specified by:
getSmtpManagerin interfaceGatewayContext
-
getEmailProfileManager
- Specified by:
getEmailProfileManagerin interfaceGatewayContext
-
getImageManager
- Specified by:
getImageManagerin interfaceGatewayContext
-
getNamedQueryManager
Description copied from interface:GatewayContextReturns 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.- Specified by:
getNamedQueryManagerin interfaceGatewayContext- Returns:
- The correct NamedQueryManager implementation for the scope.
-
getState
- Specified by:
getStatein interfaceGatewayContext
-
getStateMessage
Description copied from interface:GatewayContextMay return a string describing why the context is in its current state- Specified by:
getStateMessagein interfaceGatewayContext
-
getProjectManager
- Specified by:
getProjectManagerin interfaceGatewayContext
-
getModuleManager
- Specified by:
getModuleManagerin interfaceGatewayContext
-
getLicenseManager
- Specified by:
getLicenseManagerin interfaceGatewayContext
-
getLaunchManager
- Specified by:
getLaunchManagerin interfaceGatewayContext
-
getPerformanceMonitor
- Specified by:
getPerformanceMonitorin interfaceGatewayContext
-
getProgressManager
- Specified by:
getProgressManagerin interfaceGatewayContext
-
getNativeLibraryManager
Description copied from interface:GatewayContextTheNativeLibraryManagercan be used to load gateway-scoped native libraries on a ClassLoader that is reachable by all modules.- Specified by:
getNativeLibraryManagerin interfaceGatewayContext- Returns:
- The
NativeLibraryManager.
-
getMessageDispatchManager
Description copied from interface:GatewayContextThe MessageDispatchManager is used to send script messages to message handlers running on clients and the Gateway.- Specified by:
getMessageDispatchManagerin interfaceGatewayContext
-
getGatewayAreaNetworkManager
- Specified by:
getGatewayAreaNetworkManagerin interfaceGatewayContext
-
getTaskManager
- Specified by:
getTaskManagerin interfaceGatewayContext
-
getLoggingManager
- Specified by:
getLoggingManagerin interfaceCommonContext- Specified by:
getLoggingManagerin interfaceGatewayContext
-
getMetricRegistry
public com.codahale.metrics.MetricRegistry getMetricRegistry()Description copied from interface:GatewayContextReturns 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.- Specified by:
getMetricRegistryin interfaceGatewayContext
-
getMetricHistoryManager
Description copied from interface:GatewayContextReturns the MetricHistoryManager, which allows system metric history to be stored for a limited amount of time.- Specified by:
getMetricHistoryManagerin interfaceGatewayContext
-
getScriptManager
Description copied from interface:CommonContextReturns the ScriptManager that can be used to execute Python scripts.- Specified by:
getScriptManagerin interfaceCommonContext
-
createDeserializer
Description copied from interface:CommonContextReturns an instance of the XMLDeserializer that can be used to deserialize project resources. Note that this is the only safe way to obtain an instance of XMLDeserializer, because the context will pass the new deserializer around to all loaded modules, giving them a chance to initialize any custom deserialization deletes on it first.- Specified by:
createDeserializerin interfaceCommonContext
-
getExpressionFunctionFactory
Description copied from interface:CommonContextReturns the core function factory used by expressions. Includes extension functions registered by modules.- Specified by:
getExpressionFunctionFactoryin interfaceCommonContext
-
getModule
Description copied from interface:CommonContextReturns the hook class for another module, used for modules that deal with each other's models. Example: The reporting plugin's designer hook uses this to get FactoryPMI's palette.- Specified by:
getModulein interfaceCommonContext
-
getLicenseState
Description copied from interface:CommonContextReturns the license state for the given module- Specified by:
getLicenseStatein interfaceCommonContext
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()Description copied from interface:CommonContextThis is a generic event bus that can be used by any part of Ignition within a single scope (jvm)- Specified by:
getEventBusin interfaceCommonContext
-
createExecutionManager
Description copied from interface:ExecutionManagerFactoryCreates a new, private execution engine. Use this if you have tasks that may block waiting for other things to complete, so that you don't clog up the shared execution engine.- Specified by:
createExecutionManagerin interfaceExecutionManagerFactory
-
createExecutionManager
- Specified by:
createExecutionManagerin interfaceExecutionManagerFactory
-
getTagManager
Description copied from interface:CommonContextReturns the manager that provides access to Ignition's tag system.- Specified by:
getTagManagerin interfaceCommonContext- Specified by:
getTagManagerin interfaceGatewayContext
-
getSystemManager
- Specified by:
getSystemManagerin interfaceGatewayContext
-
getWebResourceManager
- Specified by:
getWebResourceManagerin interfaceGatewayContext
-
getHttpClientManager
- Specified by:
getHttpClientManagerin interfaceGatewayContext- Returns:
- the
HttpClientManager
-
getSecurityLevelManager
- Specified by:
getSecurityLevelManagerin interfaceGatewayContext- Returns:
- the
SecurityLevelManager
-
getIdpAdapterManager
- Specified by:
getIdpAdapterManagerin interfaceGatewayContext- Returns:
- the
IdpAdapterManager
-
getWebAuthStrategyAdapter
Description copied from interface:GatewayContextGet theWebAuthStrategyAdapterregistered with the given type- Specified by:
getWebAuthStrategyAdapterin interfaceGatewayContext- 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
-
getEdgeSystemProperties
- Specified by:
getEdgeSystemPropertiesin interfaceGatewayContext
-
getSyncManager
- Specified by:
getSyncManagerin interfaceGatewayContext- Returns:
- the
SyncManagerthat handles syncing data between two systems.
-
getEdgeEditions
Description copied from interface:CommonContextReturns a list of currently available Edge editions (either licensed or in trial). Does not check if any required modules are installed and running.- Specified by:
getEdgeEditionsin interfaceCommonContext
-
getTelemetryManager
- Specified by:
getTelemetryManagerin interfaceGatewayContext- Returns:
- the TelemetryManager used to gather statistics about the os, vm, and Ignition configuration.
-
getMetricsDashboardsManager
- Specified by:
getMetricsDashboardsManagerin interfaceGatewayContext
-
getSystemPropertiesManager
Description copied from interface:GatewayContextThe 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.- Specified by:
getSystemPropertiesManagerin interfaceGatewayContext- Returns:
- the SystemPropertiesManager that can be used to get and set gateway system properties safely.
-