Interface ChannelAdapterSelector<O,I,CO,CI>
-
- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector
- All Superinterfaces:
AdapterSelector<O,I,CO,CI>
public interface ChannelAdapterSelector<O,I,CO,CI> extends AdapterSelector<O,I,CO,CI>
Selects a protocol adapter based on the given machine data for channel connectors.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceChannelAdapterSelector.ChannelAdapterProvider<O,I,CO,CI>RefinesAdapterSelector.AdapterProvider.-
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.AdapterSelector
AdapterSelector.AdapterProvider<O,I,CO,CI>
-
-
Field Summary
-
Fields inherited from interface de.iip_ecosphere.platform.connectors.AdapterSelector
DEFAULT_CHANNEL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinit(AdapterSelector.AdapterProvider<O,I,CO,CI> provider)Initializes the adapter selector.voidinit(ChannelAdapterSelector.ChannelAdapterProvider<O,I,CO,CI> provider)Initializes the adapter selector.ChannelProtocolAdapter<O,I,CO,CI>selectNorthInput(CI data)Returns the responsible protocol adapter for northbound input.ChannelProtocolAdapter<O,I,CO,CI>selectSouthOutput(java.lang.String channel, O data)Returns the responsible protocol adapter for southbound output.
-
-
-
Method Detail
-
selectSouthOutput
ChannelProtocolAdapter<O,I,CO,CI> selectSouthOutput(java.lang.String channel, O data)
Description copied from interface:AdapterSelectorReturns the responsible protocol adapter for southbound output.- Specified by:
selectSouthOutputin interfaceAdapterSelector<O,I,CO,CI>- Parameters:
channel- the channeldatawas received from, may beAdapterSelector.DEFAULT_CHANNELdata- the data object- Returns:
- the protocol adapter (must not be null)
-
selectNorthInput
ChannelProtocolAdapter<O,I,CO,CI> selectNorthInput(CI data)
Description copied from interface:AdapterSelectorReturns the responsible protocol adapter for northbound input. So far, the channel is implicit.- Specified by:
selectNorthInputin interfaceAdapterSelector<O,I,CO,CI>- Parameters:
data- the data object- Returns:
- the protocol adapter (must not be null)
-
init
void init(ChannelAdapterSelector.ChannelAdapterProvider<O,I,CO,CI> provider)
Initializes the adapter selector.- Parameters:
provider- the adapter information provider
-
init
default void init(AdapterSelector.AdapterProvider<O,I,CO,CI> provider)
Initializes the adapter selector.- Specified by:
initin interfaceAdapterSelector<O,I,CO,CI>- Parameters:
provider- the adapter information provider- Throws:
java.lang.IllegalArgumentException- ifprovidernot of typeChannelAdapterSelector.ChannelAdapterProvider
-
-