Interface ExternalResourceDriverFactory

  • All Known Implementing Classes:
    GPUDriverFactory

    @PublicEvolving
    public interface ExternalResourceDriverFactory
    Factory for ExternalResourceDriver. Instantiate a driver with configuration.

    Drivers that can be instantiated with a factory automatically qualify for being loaded as a plugin, so long as the driver jar is self-contained (excluding Flink dependencies) and contains a META-INF/services/org.apache.flink.api.common.externalresource.ExternalResourceDriverFactory file containing the qualified class name of the factory.

    • Method Detail

      • createExternalResourceDriver

        ExternalResourceDriver createExternalResourceDriver​(Configuration config)
                                                     throws Exception
        Construct the ExternalResourceDriver from configuration.
        Parameters:
        config - configuration for this external resource
        Returns:
        the driver for this external resource
        Throws:
        Exception - if there is something wrong during the creation