Class ArtifactFetchManager

java.lang.Object
org.apache.flink.client.program.artifact.ArtifactFetchManager

public class ArtifactFetchManager extends Object
Class that manages the artifact loading process.
  • Constructor Details

    • ArtifactFetchManager

      public ArtifactFetchManager(org.apache.flink.configuration.Configuration conf)
    • ArtifactFetchManager

      public ArtifactFetchManager(org.apache.flink.configuration.Configuration conf, @Nullable String baseDir)
  • Method Details

    • fetchArtifacts

      public ArtifactFetchManager.Result fetchArtifacts(String[] uris)
      Fetches artifacts from a given URI string array. The job jar and any additional artifacts are mixed, in case of multiple artifacts the DefaultPackagedProgramRetriever logic will be used to find the job jar.
      Parameters:
      uris - URIs to fetch
      Returns:
      result with the fetched artifacts
    • fetchArtifacts

      public ArtifactFetchManager.Result fetchArtifacts(@Nullable String jobUri, @Nullable List<String> additionalUris) throws Exception
      Fetches the job jar and any additional artifact if the given list is not null or empty.
      Parameters:
      jobUri - URI of the job jar
      additionalUris - URI(s) of any additional artifact to fetch
      Returns:
      result with the fetched artifacts
      Throws:
      Exception