Class OpcConnectionExtensionPoint<S>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint<S>
com.inductiveautomation.ignition.gateway.opc.OpcConnectionExtensionPoint<S>
- Type Parameters:
S- the type of settings used by the OpcConnection provided by this extension point.
- All Implemented Interfaces:
ExtensionPoint<S>,Comparable<ExtensionPoint<S>>
Base class for
ExtensionPoints that provide an OpcConnection implementation.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
ExtensionPoint.ComponentType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceTypeTheResourceTypeused by all OPC Connections in the configuration resource collection.Fields inherited from class com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint
descriptionKey, gson, nameKey, typeId, validatorFields inherited from interface com.inductiveautomation.ignition.gateway.config.ExtensionPoint
PROFILE_KEY, SETTINGS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal OpcConnectioncreate(GatewayContext context, OpcSubscriptionModel model, String name, ExtensionPointConfig<OpcConnectionConfig, ?> config) abstract OpcConnectioncreate(GatewayContext context, OpcSubscriptionModel model, String name, OpcConnectionConfig profileConfig, S extensionConfig) Create a newOpcConnectionof the type provided by this extension point.Optional<Collection<Property<?>>>Optional<Collection<Property<?>>>final ResourceTypeThe resource type shared by all types of this extension point.Methods inherited from class com.inductiveautomation.ignition.gateway.config.AbstractExtensionPoint
addReferenceProperty, buildGson, buildValidator, customizeGson, decode, description, encode, getReferenceProperties, getSettingsValidator, name, typeId, validateMethods 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.ExtensionPoint
canCreate, compareTo, defaultSettings, getMenuActions, getSettings, getWebUiComponent, settingsSchema
-
Field Details
-
RESOURCE_TYPE
TheResourceTypeused by all OPC Connections in the configuration resource collection.
-
-
Constructor Details
-
OpcConnectionExtensionPoint
-
-
Method Details
-
settingsType
- Returns:
- the Class of the settings object for this ExtensionPoint, if it has one. If this
ExtensionPoint does not have settings, return
Optional.empty(). By default, this method returns the class of the object returned fromExtensionPoint.defaultSettings(), if one is provided.
-
resourceType
Description copied from interface:ExtensionPointThe resource type shared by all types of this extension point. This is used to group extension points together. For example, all alarm journal types would share the same resource type, but have different typeIds. -
create
public final OpcConnection create(GatewayContext context, OpcSubscriptionModel model, String name, ExtensionPointConfig<OpcConnectionConfig, ?> config) -
create
public abstract OpcConnection create(GatewayContext context, OpcSubscriptionModel model, String name, OpcConnectionConfig profileConfig, S extensionConfig) Create a newOpcConnectionof the type provided by this extension point.- Parameters:
context- theGatewayContext.model- the Gateway'sOpcSubscriptionModel.profileConfig- configuration shared by all OPC connections.extensionConfig- configuration for the type of connection created by this extension point.- Returns:
- a new
OpcConnectioninstance.
-
getTagExtensionProperties
-
getTagGroupExtensionProperties
-