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 Details

    • MyMqttProtocolAdapter

      public MyMqttProtocolAdapter()
  • Method Details

    • adaptInput

      public byte[] adaptInput(Object data) throws IOException
      Specified by:
      adaptInput in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
      Throws:
      IOException
    • adaptOutput

      public Object adaptOutput(String channel, byte[] data) throws IOException
      Specified by:
      adaptOutput in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
      Throws:
      IOException
    • getProtocolInputType

      public Class<? extends byte[]> getProtocolInputType()
      Specified by:
      getProtocolInputType in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • getConnectorInputType

      public Class<? extends Object> getConnectorInputType()
      Specified by:
      getConnectorInputType in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • getProtocolOutputType

      public Class<? extends byte[]> getProtocolOutputType()
      Specified by:
      getProtocolOutputType in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • getConnectorOutputType

      public Class<? extends Object> getConnectorOutputType()
      Specified by:
      getConnectorOutputType in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • getModelAccess

      public de.iip_ecosphere.platform.connectors.model.ModelAccess getModelAccess()
      Specified by:
      getModelAccess in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • setModelAccess

      public void setModelAccess(de.iip_ecosphere.platform.connectors.model.ModelAccess modelAccess)
      Specified by:
      setModelAccess in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
    • initializeModelAccess

      public void initializeModelAccess() throws IOException
      Specified by:
      initializeModelAccess in interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<byte[],byte[],Object,Object>
      Throws:
      IOException
    • getInputChannel

      public String getInputChannel()
      Specified by:
      getInputChannel in interface de.iip_ecosphere.platform.connectors.types.ChannelProtocolAdapter<byte[],byte[],Object,Object>
    • getOutputChannel

      public String getOutputChannel()
      Specified by:
      getOutputChannel in interface de.iip_ecosphere.platform.connectors.types.ChannelProtocolAdapter<byte[],byte[],Object,Object>