@Internal public class ResourceManager extends Object implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<org.apache.flink.table.resource.ResourceUri,URL> |
resourceInfos |
protected org.apache.flink.util.MutableURLClassLoader |
userClassLoader |
| 构造器和说明 |
|---|
ResourceManager(org.apache.flink.configuration.ReadableConfig config,
org.apache.flink.util.MutableURLClassLoader userClassLoader) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addJarConfiguration(TableConfig tableConfig)
Adds the local jar resources to the given
TableConfig. |
protected void |
checkJarPath(org.apache.flink.core.fs.Path path) |
void |
close() |
static ResourceManager |
createResourceManager(URL[] urls,
ClassLoader parent,
org.apache.flink.configuration.ReadableConfig config) |
Set<URL> |
getLocalJarResources()
Get the local jars' URL.
|
Map<org.apache.flink.table.resource.ResourceUri,URL> |
getResources() |
protected URL |
getURLFromPath(org.apache.flink.core.fs.Path path) |
URLClassLoader |
getUserClassLoader() |
void |
registerJarResources(List<org.apache.flink.table.resource.ResourceUri> resourceUris)
Due to anyone of the resource in list maybe fail during register, so we should stage it
before actual register to guarantee transaction process.
|
public ResourceManager(org.apache.flink.configuration.ReadableConfig config,
org.apache.flink.util.MutableURLClassLoader userClassLoader)
public static ResourceManager createResourceManager(URL[] urls, ClassLoader parent, org.apache.flink.configuration.ReadableConfig config)
public void registerJarResources(List<org.apache.flink.table.resource.ResourceUri> resourceUris) throws IOException
ResourceManager.IOExceptionpublic URLClassLoader getUserClassLoader()
public Set<URL> getLocalJarResources()
public void addJarConfiguration(TableConfig tableConfig)
TableConfig. It implicitly considers the
TableConfig.getRootConfiguration() and stores the merged result into TableConfig.getConfiguration().public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionprotected void checkJarPath(org.apache.flink.core.fs.Path path)
throws IOException
IOException@VisibleForTesting protected URL getURLFromPath(org.apache.flink.core.fs.Path path) throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.