Class ChannelTranslatingProtocolAdapter<O,​I,​CO,​CI>

  • Type Parameters:
    O - the output type from the underlying machine/platform
    I - the input type to the underlying machine/platform
    CO - the output type of the connector
    CI - the input type of the connector
    All Implemented Interfaces:
    ChannelProtocolAdapter<O,​I,​CO,​CI>, ProtocolAdapter<O,​I,​CO,​CI>

    public class ChannelTranslatingProtocolAdapter<O,​I,​CO,​CI>
    extends TranslatingProtocolAdapter<O,​I,​CO,​CI>
    implements ChannelProtocolAdapter<O,​I,​CO,​CI>
    Uses two TypeTranslator instances for channeled protocol adaptation.
    Author:
    Holger Eichelberger, SSE
    • Field Detail

      • outputChannel

        private java.lang.String outputChannel
      • inputChannel

        private java.lang.String inputChannel
    • Constructor Detail

      • ChannelTranslatingProtocolAdapter

        public ChannelTranslatingProtocolAdapter​(java.lang.String outputChannel,
                                                 ConnectorOutputTypeTranslator<O,​CO> outputTranslator,
                                                 java.lang.String inputChannel,
                                                 ConnectorInputTypeTranslator<CI,​I> inputTranslator)
        Creates a translating protocol adapter.
        Parameters:
        outputChannel - the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.
        outputTranslator - the output translator
        inputChannel - the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.
        inputTranslator - the input translator
    • Method Detail

      • getInputChannel

        public java.lang.String getInputChannel()
        Description copied from interface: ChannelProtocolAdapter
        Returns the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.
        Specified by:
        getInputChannel in interface ChannelProtocolAdapter<O,​I,​CO,​CI>
        Returns:
        the name of the input channel
      • getOutputChannel

        public java.lang.String getOutputChannel()
        Description copied from interface: ChannelProtocolAdapter
        Returns the name of the output channel. Further semantics is implied/restrictions are imposed by the underlying protocol.
        Specified by:
        getOutputChannel in interface ChannelProtocolAdapter<O,​I,​CO,​CI>
        Returns:
        the name of the output channel