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)
Registers a job with its required jar files.
|
void |
registerTask(JobID id,
ExecutionAttemptID execution,
Collection<BlobKey> requiredJarFiles)
Registers a job task execution with its required jar files.
|
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 fileIOExceptionvoid registerJob(JobID id, Collection<BlobKey> requiredJarFiles) throws IOException
id - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesIOExceptionvoid registerTask(JobID id, ExecutionAttemptID execution, Collection<BlobKey> requiredJarFiles) throws IOException
id - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesIOExceptionvoid unregisterTask(JobID id, ExecutionAttemptID execution)
id - job IDvoid unregisterJob(JobID id)
id - job IDvoid shutdown()
throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.