Class ConnectorFactoryTest.MyOpcUaConnector<CO,CI>
java.lang.Object
de.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object,CO,CI>
test.de.iip_ecosphere.platform.connectors.ConnectorFactoryTest.MyOpcUaConnector<CO,CI>
- Type Parameters:
CO- the output type to the IIP-Ecosphere platformCI- the input type from the IIP-Ecosphere platform
- All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.Connector<ConnectorFactoryTest.DataItem,,Object, CO, CI> de.iip_ecosphere.platform.connectors.events.EventHandlingConnector,de.iip_ecosphere.platform.connectors.model.AbstractModelAccess.NotificationChangedListener
- Enclosing class:
ConnectorFactoryTest
public static class ConnectorFactoryTest.MyOpcUaConnector<CO,CI>
extends de.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object,CO,CI>
A testing protocol adapter connector.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class de.iip_ecosphere.platform.connectors.AbstractConnector
de.iip_ecosphere.platform.connectors.AbstractConnector.BasicAdapterProvider -
Field Summary
Fields inherited from class de.iip_ecosphere.platform.connectors.AbstractConnector
DEFAULT_CHANNEL -
Constructor Summary
ConstructorsConstructorDescriptionMyOpcUaConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<ConnectorFactoryTest.DataItem, Object, CO, CI>... adapter) Creates an instance and installs the protocol adapter(s). -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params) protected voidvoiddispose()protected voidgetName()protected ConnectorFactoryTest.DataItemread()protected voidMethods inherited from class de.iip_ecosphere.platform.connectors.AbstractConnector
checkCache, configureAdapter, configureModelAccess, connect, createTlsContext, disconnect, doPolling, enableNotifications, enablePolling, getCachingStrategy, getCachingStrategyCls, getConnectorInputType, getConnectorOutputType, getConnectorParameter, getInitCachingStrategyCls, getInstanceIdentification, getProtocolInputType, getProtocolOutputType, getSelector, getStorageValue, initializeModelAccess, initSelector, installPollTask, isPolling, notificationsChanged, notifyDataTimeDifference, notifyReconfigured, received, received, request, request, setDataTimeDifference, setDataTimeDifferenceProvider, setInstanceIdentification, setReceptionCallback, setStorageValue, trigger, trigger, uninstallPollTask, useTls, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.Connector
createSharedSpace, disconnectSafe, enableSharedSpace, setReceptionCallbackSafe
-
Constructor Details
-
MyOpcUaConnector
@SafeVarargs public MyOpcUaConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<ConnectorFactoryTest.DataItem, Object, CO, CI>... adapter) Creates an instance and installs the protocol adapter(s).- Parameters:
adapter- the protocol adapter(s)- Throws:
IllegalArgumentException- ifadapteris null or empty or adapters are null
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfacede.iip_ecosphere.platform.connectors.Connector<ConnectorFactoryTest.DataItem,Object, CO, CI> - Overrides:
disposein classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI>
-
supportedEncryption
-
enabledEncryption
-
getName
-
connectImpl
protected void connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params) throws IOException - Specified by:
connectImplin classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI> - Throws:
IOException
-
disconnectImpl
- Specified by:
disconnectImplin classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI> - Throws:
IOException
-
writeImpl
- Specified by:
writeImplin classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI> - Throws:
IOException
-
read
- Specified by:
readin classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI> - Throws:
IOException
-
error
- Specified by:
errorin classde.iip_ecosphere.platform.connectors.AbstractConnector<ConnectorFactoryTest.DataItem,Object, CO, CI>
-