public class FallbackLibraryCacheManager extends Object implements LibraryCacheManager
| Constructor and Description |
|---|
FallbackLibraryCacheManager() |
| 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.
|
public ClassLoader getClassLoader(JobID id)
LibraryCacheManagergetClassLoader in interface LibraryCacheManagerid - identifying the jobpublic File getFile(BlobKey blobKey) throws IOException
LibraryCacheManagergetFile in interface LibraryCacheManagerblobKey - identifying the requested fileIOExceptionpublic void register(JobID id, Collection<BlobKey> requiredJarFiles) throws IOException
LibraryCacheManagerregister in interface LibraryCacheManagerid - job IDrequiredJarFiles - collection of blob keys identifying the required jar filesIOExceptionpublic void unregister(JobID id)
LibraryCacheManagerunregister in interface LibraryCacheManagerid - job IDpublic void shutdown()
LibraryCacheManagershutdown in interface LibraryCacheManagerCopyright © 2014 The Apache Software Foundation. All rights reserved.