Class DecodedResourceImpl<R>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DecodedResourceImpl<R>
- All Implemented Interfaces:
DecodedResource<R>
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedResourceImpl
(Resource resource, R config) Creates a DecodedResource with no backup config.DecodedResourceImpl
(Resource resource, R config, R backupConfig) Creates a DecodedResource instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.config.DecodedResource
description, enabled, name
-
Constructor Details
-
DecodedResourceImpl
Creates a DecodedResource with no backup config. -
DecodedResourceImpl
Creates a DecodedResource instance.- Parameters:
resource
- The resource that was decoded. (required)config
- The configuration object that was deserialized from config.json (required)backupConfig
- The alternate configuration object deserialized from backupConfig.json, if any. (optional)
-
-
Method Details
-
resource
- Specified by:
resource
in interfaceDecodedResource<R>
- Returns:
- direct access to the Resource itself. This is useful because the Resource contains the name, enabled bit, description, and any other data files that may be associated with the resource.
-
config
- Specified by:
config
in interfaceDecodedResource<R>
- Returns:
- the decoded configuration object, which is the result of deserializing the resource's config.json data file.
-
backupConfig
Description copied from interface:DecodedResource
An optional alternate copy of the config object, to be used if the gateway's redundancyNodeRole
= Backup- Specified by:
backupConfig
in interfaceDecodedResource<R>
-