@ThreadSafe public class BlobLibraryCacheManager extends Object implements LibraryCacheManager
PermanentBlobService
and create a class loader with references to them.Modifier and Type | Class and Description |
---|---|
static interface |
BlobLibraryCacheManager.ClassLoaderFactory |
LibraryCacheManager.ClassLoaderHandle, LibraryCacheManager.ClassLoaderLease
Constructor and Description |
---|
BlobLibraryCacheManager(PermanentBlobService blobService,
BlobLibraryCacheManager.ClassLoaderFactory classLoaderFactory) |
Modifier and Type | Method and Description |
---|---|
static BlobLibraryCacheManager.ClassLoaderFactory |
defaultClassLoaderFactory(FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
String[] alwaysParentFirstPatterns,
FatalErrorHandler fatalErrorHandlerJvmMetaspaceOomError,
boolean checkClassLoaderLeak) |
LibraryCacheManager.ClassLoaderLease |
registerClassLoaderLease(JobID jobId)
Registers a new class loader lease for the given jobId.
|
void |
shutdown()
Shuts the library cache manager down.
|
public BlobLibraryCacheManager(PermanentBlobService blobService, BlobLibraryCacheManager.ClassLoaderFactory classLoaderFactory)
public LibraryCacheManager.ClassLoaderLease registerClassLoaderLease(JobID jobId)
LibraryCacheManager
registerClassLoaderLease
in interface LibraryCacheManager
jobId
- jobId for which to register a new class loader leasepublic void shutdown()
LibraryCacheManager
LibraryCacheManager.ClassLoaderLease
and release all registered user code class loaders.shutdown
in interface LibraryCacheManager
public static BlobLibraryCacheManager.ClassLoaderFactory defaultClassLoaderFactory(FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder, String[] alwaysParentFirstPatterns, @Nullable FatalErrorHandler fatalErrorHandlerJvmMetaspaceOomError, boolean checkClassLoaderLeak)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.