Interface ConnectorFactoryDescriptor.ConnectorFactoryCreator
- All Known Implementing Classes:
DefaultConnectorFactoryDescriptor.DefaultConnectorFactoryCreator
- Enclosing interface:
ConnectorFactoryDescriptor
public static interface ConnectorFactoryDescriptor.ConnectorFactoryCreator
Creator instance for a specific service id. Creator functions must return non-null values.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptioncreateChanneledInputSerializer(Class<T> cls) Creates a channeled input serializer for the givenserviceIdand the given typecls.createChanneledOutputSerializer(Class<T> cls) Creates a channeled output serializer for the givenserviceIdand the given typecls.Creates the default connector parameter instance.<O,I, CO, CI>
ProtocolAdapter<O,I, CO, CI>[] createProtocolAdapter(de.iip_ecosphere.platform.support.metrics.MetricsProvider metrics, File log, Supplier<String> inPathSupplier, Supplier<String> outPathSupplier, Class<O> oClass, Class<I> iClass, Class<CO> coClass, Class<CI> ciClass) Creates the default connector protocol adapter.Returns the associated plugin id.
-
Method Details
-
getPluginId
String getPluginId()Returns the associated plugin id.- Returns:
- the plugin id
-
createConnectorParameter
ConnectorParameter createConnectorParameter()Creates the default connector parameter instance.- Returns:
- the connector parameter
-
createProtocolAdapter
<O,I, ProtocolAdapter<O,CO, CI> I, createProtocolAdapterCO, CI>[] (de.iip_ecosphere.platform.support.metrics.MetricsProvider metrics, File log, Supplier<String> inPathSupplier, Supplier<String> outPathSupplier, Class<O> oClass, Class<I> iClass, Class<CO> coClass, Class<CI> ciClass) Creates the default connector protocol adapter.- 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- Parameters:
metrics- the metrics provider to use, null for no metric measurementslog- the log file to use to record individual measurements in experiments, null for no logging. Only becomes active ifmetricsis not nullinPathSupplier- function returning the actual input base path to use for data accesses, may be nulloutPathSupplier- function returning the actual output base path to use for data accesses, may be nulloClass- the actual type ofOiClass- the actual type ofIcoClass- the actual type ofCOciClass- the actual type ofCI- Returns:
- the connector protocol adapter
-
createChanneledInputSerializer
<T> ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> createChanneledInputSerializer(Class<T> cls) Creates a channeled input serializer for the givenserviceIdand the given typecls.- Type Parameters:
T- the data type- Parameters:
cls- the data type- Returns:
- the serializer or null if unknown
-
createChanneledOutputSerializer
<T> ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> createChanneledOutputSerializer(Class<T> cls) Creates a channeled output serializer for the givenserviceIdand the given typecls.- Type Parameters:
T- the data type- Parameters:
cls- the data type- Returns:
- the serializer or null if unknown
-