Class HttpArtifactFetcher
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.artifact.HttpArtifactFetcher
-
- All Implemented Interfaces:
ArtifactFetcher
public class HttpArtifactFetcher extends java.lang.Object implements ArtifactFetcher
Download the jar from the http resource.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpArtifactFetcherINSTANCEstatic org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description HttpArtifactFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Filefetch(java.lang.String uri, org.apache.flink.configuration.Configuration flinkConfiguration, java.io.File targetDir)Fetch the resource from the uri to the targetDir.
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
INSTANCE
public static final HttpArtifactFetcher INSTANCE
-
-
Method Detail
-
fetch
public java.io.File fetch(java.lang.String uri, org.apache.flink.configuration.Configuration flinkConfiguration, java.io.File targetDir) throws java.lang.ExceptionDescription copied from interface:ArtifactFetcherFetch the resource from the uri to the targetDir.- Specified by:
fetchin interfaceArtifactFetcher- 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.
-
-