Class HistorianGatewayHook
java.lang.Object
com.inductiveautomation.ignition.gateway.model.AbstractGatewayModuleHook
com.inductiveautomation.historian.gateway.HistorianGatewayHook
- All Implemented Interfaces:
GatewayModuleHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HistorianGatewayHookget(GatewayContext context) Used by the mounting underneath /res/module-id/* and /data/module-id/* as an alternate mounting path instead of your module id, if present.Returns the RPC implementation for this module, if any.voidinitializeScriptManager(ScriptManager manager) Initialize a newly-instantiated script manager.booleanvoidmountRouteHandlers(RouteGroup routes) Provides a chance for the module to mount any route handlers it wants.protected voidregister(AggregationMode mode, AggregationFunction func) protected voidprotected voidvoidsetup(GatewayContext context) Called before register.voidshutdown()Called to shutdown this module.voidstartup(LicenseState activationState) Called to initialize the module.Methods inherited from class com.inductiveautomation.ignition.gateway.model.AbstractGatewayModuleHook
configureDeserializer, configureFunctionFactory, configureSerializer, notifyLicenseStateChangedMethods 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.GatewayModuleHook
getExtensionPoints, isFreeModule, onMountedResourceRequest
-
Constructor Details
-
HistorianGatewayHook
public HistorianGatewayHook()
-
-
Method Details
-
get
-
setup
Description copied from interface:GatewayModuleHookCalled before register. The module can create data structures, loggers, etc. The module should not reach out to other parts of the system and expect them to be ready or created yet. -
initializeScriptManager
Description copied from interface:GatewayModuleHookInitialize a newly-instantiated script manager. This will be called exactly once for any givenScriptManagerinstance. Usually this will involve callingScriptManager.addScriptModule(String, Object), which reflectively loads the public (instance and static) java functions from the given object into the scripting environment, at the provided path.This function may be called before
GatewayModuleHook.startup(LicenseState), but never beforeGatewayModuleHook.setup(GatewayContext).- Specified by:
initializeScriptManagerin interfaceGatewayModuleHook- Overrides:
initializeScriptManagerin classAbstractGatewayModuleHook
-
getHistorianManager
-
getRecordMigrationStrategies
- Returns:
- a list of migration strategies to run if a pre-8.3.0 internal database is found. This method will be
called before
GatewayModuleHook.setup(GatewayContext).
-
startup
Description copied from interface:GatewayModuleHookCalled to initialize the module. Will only be called once. Persistence interface is available, but only in read-only mode. -
shutdown
public void shutdown()Description copied from interface:GatewayModuleHookCalled to shutdown this module. Note that this instance will never be started back up - a new one will be created if a restart is desired -
getMountedResourceFolder
- Returns:
- the path to a folder in one of the module's gateway jar files that should be mounted at /res/module-id/foldername
-
mountRouteHandlers
Description copied from interface:GatewayModuleHookProvides a chance for the module to mount any route handlers it wants. These will be active at /main/data/module-id/* SeeRouteGroupfor details. Will be called after startup(). -
getMountPathAlias
Description copied from interface:GatewayModuleHookUsed by the mounting underneath /res/module-id/* and /data/module-id/* as an alternate mounting path instead of your module id, if present. -
getRpcImplementation
Description copied from interface:GatewayModuleHookReturns the RPC implementation for this module, if any. This is the recommended way to expose RPC functions to the Designer or Vision Client if required. The return value will be cached for the lifetime of the Gateway.- Specified by:
getRpcImplementationin interfaceGatewayModuleHook- Overrides:
getRpcImplementationin classAbstractGatewayModuleHook- See Also:
-
isMakerEditionCompatible
public boolean isMakerEditionCompatible()- Returns:
trueif this module opts-in to participating in Ignition Maker Edition. Default isfalse. If you override this and return true, your module will become activated when running in a Maker Edition installation.
-
registerProtobufClasses
protected void registerProtobufClasses() -
register
-
registerAggregationFunctions
protected void registerAggregationFunctions()
-