Interface ArtifactFetcher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.File fetch​(java.lang.String uri, org.apache.flink.configuration.Configuration flinkConfiguration, java.io.File targetDir)
      Fetch the resource from the uri to the targetDir.
    • Method Detail

      • fetch

        java.io.File fetch​(java.lang.String uri,
                           org.apache.flink.configuration.Configuration flinkConfiguration,
                           java.io.File targetDir)
                    throws java.lang.Exception
        Fetch the resource from the uri to the targetDir.
        Parameters:
        uri - The artifact to be fetched.
        flinkConfiguration - Flink configuration.
        targetDir - The target dir to put the artifact.
        Returns:
        The path of the fetched artifact.
        Throws:
        java.lang.Exception - Error during fetching the artifact.