public interface LibraryCacheManager
| 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.
|
ClassLoader getClassLoader(org.apache.flink.api.common.JobID id)
id - identifying the jobFile getFile(BlobKey blobKey) throws IOException
blobKey - identifying the requested fileIOExceptionvoid registerJob(org.apache.flink.api.common.JobID id,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
throws IOException
id - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesrequiredClasspaths - collection of classpaths that are added to the user code class loaderIOExceptionvoid registerTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
throws IOException
id - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesrequiredClasspaths - collection of classpaths that are added to the user code class loaderIOExceptionvoid unregisterTask(org.apache.flink.api.common.JobID id,
ExecutionAttemptID execution)
id - job IDvoid unregisterJob(org.apache.flink.api.common.JobID id)
id - job IDvoid shutdown()
throws IOException
IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.