Class ProxyRulesMigrationStrategy
java.lang.Object
com.inductiveautomation.ignition.gateway.gan.ProxyRulesMigrationStrategy
- All Implemented Interfaces:
IdbMigrationStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.config.migration.IdbMigrationStrategy
IdbMigrationStrategy.MigrationResult -
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.config.migration.IdbMigrationStrategy
MIGRATION_ACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<SRecordMeta<? extends SRecordInstance>>@NotNull StringA human-readable name for this migration strategy to use in the migration log.migrate(MigrationContext context) Migrate records from the internal database to the configuration resource collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.config.migration.IdbMigrationStrategy
getTableNames
-
Constructor Details
-
ProxyRulesMigrationStrategy
public ProxyRulesMigrationStrategy()
-
-
Method Details
-
migrate
public IdbMigrationStrategy.MigrationResult migrate(MigrationContext context) throws MigrationException Description copied from interface:IdbMigrationStrategyMigrate records from the internal database to the configuration resource collection. To do this, use the given session to issue anSQueryto find the records you want to migrate. Then compile a list ofChangeOperationthat will be applied to the config resource collection to add the appropriate resources.- Specified by:
migratein interfaceIdbMigrationStrategy- Parameters:
context- aMigrationContextwhich provides methods for accessing aPersistenceSessionto query the internal DB as well as aConfigurationManagerfor accessing the new config resource APIs- Returns:
- A list of change operations that will be applied to the config resource collection.
- Throws:
MigrationException- If an error occurs during migration.
-
getRecordMetas
- Specified by:
getRecordMetasin interfaceIdbMigrationStrategy- Returns:
- The record metas that this strategy migrates, if any. If this strategy does not migrate records, return
an empty list. Also note that any record metas returned here will automatically be applied to the
SchemaUpdater.updatePersistentRecords(Iterable), so you do not need to do this again in yourGatewayModuleHooksetup() method.
-
getStrategyName
Description copied from interface:IdbMigrationStrategyA human-readable name for this migration strategy to use in the migration log.- Specified by:
getStrategyNamein interfaceIdbMigrationStrategy
-