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 |
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.
|
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 registerJob(JobID id, Collection<BlobKey> requiredJarFiles)
LibraryCacheManagerregisterJob in interface LibraryCacheManagerid - job IDrequiredJarFiles - collection of blob keys identifying the required jar filespublic void registerTask(JobID id, ExecutionAttemptID execution, Collection<BlobKey> requiredJarFiles)
LibraryCacheManagerregisterTask in interface LibraryCacheManagerid - job IDrequiredJarFiles - collection of blob keys identifying the required jar filespublic void unregisterJob(JobID id)
LibraryCacheManagerunregisterJob in interface LibraryCacheManagerid - job IDpublic void unregisterTask(JobID id, ExecutionAttemptID execution)
LibraryCacheManagerunregisterTask in interface LibraryCacheManagerid - job IDpublic void shutdown()
LibraryCacheManagershutdown in interface LibraryCacheManagerCopyright © 2015 The Apache Software Foundation. All rights reserved.