public interface LibraryCacheManager
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader(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(JobID id,
Collection<BlobKey> requiredJarFiles,
Collection<URL> requiredClasspaths)
Registers a job with its required jar files and classpaths.
|
void |
registerTask(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(JobID id)
Unregisters a job from the library cache manager.
|
void |
unregisterTask(JobID id,
ExecutionAttemptID execution)
Unregisters a job from the library cache manager.
|
ClassLoader getClassLoader(JobID id)
id
- identifying the jobFile getFile(BlobKey blobKey) throws IOException
blobKey
- identifying the requested fileIOException
void registerJob(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 loaderIOException
void registerTask(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 loaderIOException
void unregisterTask(JobID id, ExecutionAttemptID execution)
id
- job IDvoid unregisterJob(JobID id)
id
- job IDvoid shutdown() throws IOException
IOException
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.