public class FunctionCacheManagerImpl extends Object implements FunctionCacheManager
FunctionCacheManager.| Constructor and Description |
|---|
FunctionCacheManagerImpl(ClassLoader rootClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the cache manager to release created class loaders.
|
ClassLoader |
getClassLoader(String fid)
Returns the function code class loader associated with id.
|
void |
registerFunctionInstance(String fid,
String eid,
List<String> requiredJarFiles,
List<URL> requiredClasspaths) |
void |
registerFunctionInstanceWithArchive(String fid,
String eid,
String narArchive,
String narExtractionDirectory) |
void |
unregisterFunctionInstance(String fid,
String eid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterFunction, unregisterFunctionpublic FunctionCacheManagerImpl(ClassLoader rootClassLoader)
public ClassLoader getClassLoader(String fid)
FunctionCacheManagergetClassLoader in interface FunctionCacheManagerfid - function idpublic void registerFunctionInstance(String fid, String eid, List<String> requiredJarFiles, List<URL> requiredClasspaths) throws IOException
registerFunctionInstance in interface FunctionCacheManagerIOExceptionpublic void registerFunctionInstanceWithArchive(String fid, String eid, String narArchive, String narExtractionDirectory) throws IOException
registerFunctionInstanceWithArchive in interface FunctionCacheManagerIOExceptionpublic void unregisterFunctionInstance(String fid, String eid)
unregisterFunctionInstance in interface FunctionCacheManagerpublic void close()
FunctionCacheManagerclose in interface AutoCloseableclose in interface FunctionCacheManagerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.