public interface LibraryCacheManager
In order to obtain a user code class loader, one first needs to obtain a LibraryCacheManager.ClassLoaderLease
for a given JobID
. At first, the LibraryCacheManager.ClassLoaderLease
is
unresolved. In order to obtain the user class loader one needs to resolve it by specifying the
required jar files and class paths. The user code class loader for a job is valid as long as
there exists a valid LibraryCacheManager.ClassLoaderLease
. A LibraryCacheManager.ClassLoaderLease
becomes invalid once it
gets released.
Modifier and Type | Interface and Description |
---|---|
static interface |
LibraryCacheManager.ClassLoaderHandle
Handle to retrieve a user code class loader for the associated job.
|
static interface |
LibraryCacheManager.ClassLoaderLease
Lease which allows to signal when the user code class loader is no longer needed.
|
Modifier and Type | Method and Description |
---|---|
LibraryCacheManager.ClassLoaderLease |
registerClassLoaderLease(JobID jobId)
Registers a new class loader lease for the given jobId.
|
void |
shutdown()
Shuts the library cache manager down.
|
LibraryCacheManager.ClassLoaderLease registerClassLoaderLease(JobID jobId)
jobId
- jobId for which to register a new class loader leasevoid shutdown()
LibraryCacheManager.ClassLoaderLease
and release all registered user code class loaders.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.