Class ConnectorFactoryTest.MyMqttProtocolAdapter
java.lang.Object
test.de.iip_ecosphere.platform.connectors.ConnectorFactoryTest.MyMqttProtocolAdapter
- All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.types.ChannelProtocolAdapter<byte[],,byte[], Object, Object> de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[], Object, Object>
- Enclosing class:
ConnectorFactoryTest
public static class ConnectorFactoryTest.MyMqttProtocolAdapter
extends Object
implements de.iip_ecosphere.platform.connectors.types.ChannelProtocolAdapter<byte[],byte[],Object,Object>
Testing channel protocol adapter.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]adaptInput(Object data) adaptOutput(String channel, byte[] data) de.iip_ecosphere.platform.connectors.model.ModelAccessClass<? extends byte[]> Class<? extends byte[]> voidvoidsetModelAccess(de.iip_ecosphere.platform.connectors.model.ModelAccess modelAccess)
-
Constructor Details
-
MyMqttProtocolAdapter
public MyMqttProtocolAdapter()
-
-
Method Details
-
adaptInput
- Specified by:
adaptInputin interfacede.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[], Object, Object> - Throws:
IOException
-
adaptOutput
- Specified by:
adaptOutputin interfacede.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[], Object, Object> - Throws:
IOException
-
getProtocolInputType
-
getConnectorInputType
-
getProtocolOutputType
-
getConnectorOutputType
-
getModelAccess
public de.iip_ecosphere.platform.connectors.model.ModelAccess getModelAccess() -
setModelAccess
public void setModelAccess(de.iip_ecosphere.platform.connectors.model.ModelAccess modelAccess) -
initializeModelAccess
- Specified by:
initializeModelAccessin interfacede.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[], Object, Object> - Throws:
IOException
-
getInputChannel
-
getOutputChannel
-