public abstract class GatewayContextDecorator extends java.lang.Object implements GatewayContext
GatewayContextSERVLET_CONTEXT_KEY| Constructor and Description |
|---|
GatewayContextDecorator(GatewayContext gatewayContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.sql.DataSource |
createDataSource(java.util.Properties connectionProps)
Will create a javax.sql.DataSource that uses connection pooling through apache's DBCP
|
XMLDeserializer |
createDeserializer()
Returns an instance of the XMLDeserializer that can be used to deserialize project resources.
|
ExecutionManager |
createExecutionManager(java.lang.String name,
int threadCount)
Creates a new, private execution engine.
|
ExecutionManager |
createExecutionManager(java.lang.String name,
int threadCount,
java.util.concurrent.ThreadFactory factory) |
AlarmManager |
getAlarmManager()
The alarm manager is the central hub for alarming.
|
AuditManager |
getAuditManager() |
DatasourceManager |
getDatasourceManager() |
com.google.common.eventbus.EventBus |
getEventBus()
This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)
|
ExecutionManager |
getExecutionManager()
Returns the shared execution manager for the gateway.
|
java.util.concurrent.ExecutorService |
getExecutorService() |
FunctionFactory |
getExpressionFunctionFactory()
Returns the core function factory used by expressions.
|
GatewayNetworkManager |
getGatewayAreaNetworkManager() |
GatewaySessionManager |
getGatewaySessionManager() |
HistoryManager |
getHistoryManager() |
HttpClientManager |
getHttpClientManager() |
IdpAdapterManager |
getIdpAdapterManager() |
ImageManager |
getImageManager() |
java.util.UUID |
getInstanceToken()
Returns a UUID that is generated fresh every time the context starts up.
|
LaunchManager |
getLaunchManager() |
LicenseManager |
getLicenseManager() |
LicenseState |
getLicenseState(java.lang.String moduleId)
Returns the license state for the given module
|
DBInterface |
getLocalDBInterface() |
PersistenceInterface |
getLocalPersistenceInterface()
Returns an interface to the persistence system that bypasses redundancy, and goes directly to the internal
database.
|
GatewayLoggingManager |
getLoggingManager() |
MessageDispatchManager |
getMessageDispatchManager()
The MessageDispatchManager is used to send script messages to message handlers running on clients and the
Gateway.
|
MetricHistoryManager |
getMetricHistoryManager()
Returns the MetricHistoryManager, which allows system metric history to be stored for a limited amount of time.
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Returns the Gateway MetricRegistry, where various metrics like meters and gauges can be accessed.
|
java.lang.Object |
getModule(java.lang.String id)
Returns the hook class for another module, used for modules that deal with each other's models.
|
ModuleManager |
getModuleManager() |
ModuleServicesManager |
getModuleServicesManager() |
NamedQueryRpc |
getNamedQueryRpc()
Returns the appropriate named query rpc for the context.
|
NativeLibraryManager |
getNativeLibraryManager()
The
NativeLibraryManager can be used to load gateway-scoped native libraries on a ClassLoader that is
reachable by all modules. |
OpcConnectionManager |
getOpcManager() |
PerformanceMonitor |
getPerformanceMonitor() |
PersistenceInterface |
getPersistenceInterface()
Returns an interface to the internal database persistence system.
|
GatewayProgressManager |
getProgressManager() |
ProjectManager |
getProjectManager() |
RedundancyManager |
getRedundancyManager() |
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService() |
ScheduleManager |
getScheduleManager()
Get the manager that holds all of the defined schedules.
|
SchemaUpdater |
getSchemaUpdater() |
ScriptManager |
getScriptManager()
Returns the ScriptManager that can be used to execute Python scripts.
|
SecurityLevelManager |
getSecurityLevelManager() |
SecurityZoneManager |
getSecurityZoneManager() |
SmtpManager |
getSmtpManager() |
ContextState |
getState() |
java.lang.String |
getStateMessage()
May return a string describing why the context is in its current state
|
SystemManager |
getSystemManager() |
SystemPropertiesRecord |
getSystemProperties()
Convenience function to look up the SystemPropertiesRecord.
|
GatewayTagHistoryManager |
getTagHistoryManager() |
GatewayTagManager |
getTagManager()
Returns the manager that provides access to Ignition's tag system.
|
TaskManager |
getTaskManager() |
UserSourceManager |
getUserSourceManager()
This manager holds all of the configured user sources in the system.
|
java.util.Optional<WebAuthStrategyAdapter> |
getWebAuthStrategyAdapter(java.lang.String type)
Get the
WebAuthStrategyAdapter registered with the given type |
WebResourceManager |
getWebResourceManager() |
public GatewayContextDecorator(@Nonnull
GatewayContext gatewayContext)
public DatasourceManager getDatasourceManager()
getDatasourceManager in interface GatewayContextpublic UserSourceManager getUserSourceManager()
GatewayContextgetUserSourceManager in interface GatewayContextpublic SecurityZoneManager getSecurityZoneManager()
getSecurityZoneManager in interface GatewayContextpublic ScheduleManager getScheduleManager()
GatewayContextgetScheduleManager in interface GatewayContextpublic AuditManager getAuditManager()
getAuditManager in interface GatewayContextpublic AlarmManager getAlarmManager()
GatewayContextgetAlarmManager in interface GatewayContextpublic java.util.UUID getInstanceToken()
GatewayContextgetInstanceToken in interface GatewayContextpublic DBInterface getLocalDBInterface()
getLocalDBInterface in interface GatewayContextpublic PersistenceInterface getPersistenceInterface()
GatewayContextgetPersistenceInterface in interface GatewayContextpublic PersistenceInterface getLocalPersistenceInterface()
GatewayContextgetLocalPersistenceInterface in interface GatewayContextpublic javax.sql.DataSource createDataSource(java.util.Properties connectionProps)
throws java.lang.Exception
GatewayContextcreateDataSource in interface GatewayContextjava.lang.Exceptionpublic SchemaUpdater getSchemaUpdater()
getSchemaUpdater in interface GatewayContextpublic ExecutionManager getExecutionManager()
GatewayContextgetExecutionManager in interface GatewayContextpublic java.util.concurrent.ExecutorService getExecutorService()
getExecutorService in interface GatewayContextpublic java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
getScheduledExecutorService in interface GatewayContextpublic RedundancyManager getRedundancyManager()
getRedundancyManager in interface GatewayContextpublic GatewaySessionManager getGatewaySessionManager()
getGatewaySessionManager in interface GatewayContextpublic ModuleServicesManager getModuleServicesManager()
getModuleServicesManager in interface GatewayContextpublic SystemPropertiesRecord getSystemProperties()
GatewayContextsession.find(SystemPropertiesRecord.META, SQueryMode.SBASIC, 0L);
getSystemProperties in interface GatewayContextpublic OpcConnectionManager getOpcManager()
getOpcManager in interface GatewayContextpublic GatewayTagHistoryManager getTagHistoryManager()
getTagHistoryManager in interface GatewayContextpublic HistoryManager getHistoryManager()
getHistoryManager in interface GatewayContextpublic SmtpManager getSmtpManager()
getSmtpManager in interface GatewayContextpublic ImageManager getImageManager()
getImageManager in interface GatewayContextpublic NamedQueryRpc getNamedQueryRpc()
GatewayContextgetNamedQueryRpc in interface GatewayContextpublic ContextState getState()
getState in interface GatewayContextpublic java.lang.String getStateMessage()
GatewayContextgetStateMessage in interface GatewayContextpublic ProjectManager getProjectManager()
getProjectManager in interface GatewayContextpublic ModuleManager getModuleManager()
getModuleManager in interface GatewayContextpublic LicenseManager getLicenseManager()
getLicenseManager in interface GatewayContextpublic LaunchManager getLaunchManager()
getLaunchManager in interface GatewayContextpublic PerformanceMonitor getPerformanceMonitor()
getPerformanceMonitor in interface GatewayContextpublic GatewayProgressManager getProgressManager()
getProgressManager in interface GatewayContextpublic NativeLibraryManager getNativeLibraryManager()
GatewayContextNativeLibraryManager can be used to load gateway-scoped native libraries on a ClassLoader that is
reachable by all modules.getNativeLibraryManager in interface GatewayContextNativeLibraryManager.public MessageDispatchManager getMessageDispatchManager()
GatewayContextgetMessageDispatchManager in interface GatewayContextpublic GatewayNetworkManager getGatewayAreaNetworkManager()
getGatewayAreaNetworkManager in interface GatewayContextpublic TaskManager getTaskManager()
getTaskManager in interface GatewayContextpublic GatewayLoggingManager getLoggingManager()
getLoggingManager in interface CommonContextgetLoggingManager in interface GatewayContextpublic com.codahale.metrics.MetricRegistry getMetricRegistry()
GatewayContextgetMetricRegistry in interface GatewayContextpublic MetricHistoryManager getMetricHistoryManager()
GatewayContextgetMetricHistoryManager in interface GatewayContextpublic ScriptManager getScriptManager()
CommonContextgetScriptManager in interface CommonContextpublic XMLDeserializer createDeserializer()
CommonContextcreateDeserializer in interface CommonContextpublic FunctionFactory getExpressionFunctionFactory()
CommonContextgetExpressionFunctionFactory in interface CommonContextpublic java.lang.Object getModule(java.lang.String id)
CommonContextgetModule in interface CommonContextpublic LicenseState getLicenseState(java.lang.String moduleId)
CommonContextgetLicenseState in interface CommonContextpublic com.google.common.eventbus.EventBus getEventBus()
CommonContextgetEventBus in interface CommonContextpublic ExecutionManager createExecutionManager(java.lang.String name, int threadCount)
ExecutionManagerFactorycreateExecutionManager in interface ExecutionManagerFactorypublic ExecutionManager createExecutionManager(java.lang.String name, int threadCount, java.util.concurrent.ThreadFactory factory)
createExecutionManager in interface ExecutionManagerFactorypublic GatewayTagManager getTagManager()
CommonContextgetTagManager in interface CommonContextgetTagManager in interface GatewayContextpublic SystemManager getSystemManager()
getSystemManager in interface GatewayContextpublic WebResourceManager getWebResourceManager()
getWebResourceManager in interface GatewayContextpublic HttpClientManager getHttpClientManager()
getHttpClientManager in interface GatewayContextHttpClientManagerpublic SecurityLevelManager getSecurityLevelManager()
getSecurityLevelManager in interface GatewayContextSecurityLevelManagerpublic IdpAdapterManager getIdpAdapterManager()
getIdpAdapterManager in interface GatewayContextIdpAdapterManagerpublic java.util.Optional<WebAuthStrategyAdapter> getWebAuthStrategyAdapter(@Nonnull java.lang.String type)
GatewayContextWebAuthStrategyAdapter registered with the given typegetWebAuthStrategyAdapter in interface GatewayContexttype - the registered adapter type stringOptional containing the WebAuthStrategyAdapter registered with the given type or an
empty Optional if there exists no adapter registered with the given type