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 |
register(JobID id,
Collection<BlobKey> requiredJarFiles)
Registers a job with its required jar files.
|
void |
shutdown()
Shutdown method
|
void |
unregister(JobID id)
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 register(JobID id, Collection<BlobKey> requiredJarFiles) throws IOException
id - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesIOExceptionvoid unregister(JobID id)
id - job IDvoid shutdown()
throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.