public class FallbackLibraryCacheManager extends Object implements LibraryCacheManager
| Constructor and Description |
|---|
FallbackLibraryCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader(org.apache.flink.api.common.JobID id)
Returns the user code class loader associated with id.
|
File |
getFile(BlobKey blobKey)
Returns a file handle to the file identified by the blob key.
|
void |
registerJob(org.apache.flink.api.common.JobID id,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
Registers a job with its required jar files and classpaths.
|
void |
registerTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
Registers a job task execution with its required jar files and classpaths.
|
void |
shutdown()
Shutdown method
|
void |
unregisterJob(org.apache.flink.api.common.JobID id)
Unregisters a job from the library cache manager.
|
void |
unregisterTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution)
Unregisters a job from the library cache manager.
|
public ClassLoader getClassLoader(org.apache.flink.api.common.JobID id)
LibraryCacheManagergetClassLoader in interface LibraryCacheManagerid - identifying the jobpublic File getFile(BlobKey blobKey) throws IOException
LibraryCacheManagergetFile in interface LibraryCacheManagerblobKey - identifying the requested fileIOExceptionpublic void registerJob(org.apache.flink.api.common.JobID id,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
LibraryCacheManagerregisterJob in interface LibraryCacheManagerid - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesrequiredClasspaths - collection of classpaths that are added to the user code class loaderpublic void registerTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
LibraryCacheManagerregisterTask in interface LibraryCacheManagerid - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesrequiredClasspaths - collection of classpaths that are added to the user code class loaderpublic void unregisterJob(org.apache.flink.api.common.JobID id)
LibraryCacheManagerunregisterJob in interface LibraryCacheManagerid - job IDpublic void unregisterTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution)
LibraryCacheManagerunregisterTask in interface LibraryCacheManagerid - job IDpublic void shutdown()
LibraryCacheManagershutdown in interface LibraryCacheManagerCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.