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 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, 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.
      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
      Parameters:
      metrics - the metrics provider to use, null for no metric measurements
      log - the log file to use to record individual measurements in experiments, null for no logging. Only becomes active if metrics is not null
      inPathSupplier - function returning the actual input base path to use for data accesses, may be null
      outPathSupplier - function returning the actual output base path to use for data accesses, may be null
      oClass - the actual type of O
      iClass - the actual type of I
      coClass - the actual type of CO
      ciClass - the actual type of CI
      Returns:
      the connector protocol adapter
    • createChanneledInputSerializer

      <T> ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T> createChanneledInputSerializer(Class<T> cls)
      Creates a channeled input serializer for the given serviceId and the given type cls.
      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 given serviceId and the given type cls.
      Type Parameters:
      T - the data type
      Parameters:
      cls - the data type
      Returns:
      the serializer or null if unknown