Class FunctionCacheManagerImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionCacheManagerImpl​(java.lang.ClassLoader rootClassLoader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the cache manager to release created class loaders.
      java.lang.ClassLoader getClassLoader​(java.lang.String fid)
      Returns the function code class loader associated with id.
      void registerFunctionInstance​(java.lang.String fid, java.lang.String eid, java.util.List<java.lang.String> requiredJarFiles, java.util.List<java.net.URL> requiredClasspaths)  
      void registerFunctionInstanceWithArchive​(java.lang.String fid, java.lang.String eid, java.lang.String narArchive, java.lang.String narExtractionDirectory)  
      void unregisterFunctionInstance​(java.lang.String fid, java.lang.String eid)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FunctionCacheManagerImpl

        public FunctionCacheManagerImpl​(java.lang.ClassLoader rootClassLoader)
    • Method Detail

      • getClassLoader

        public java.lang.ClassLoader getClassLoader​(java.lang.String fid)
        Description copied from interface: FunctionCacheManager
        Returns the function code class loader associated with id.
        Specified by:
        getClassLoader in interface FunctionCacheManager
        Parameters:
        fid - function id
        Returns:
        class loader which can load the function code.
      • registerFunctionInstance

        public void registerFunctionInstance​(java.lang.String fid,
                                             java.lang.String eid,
                                             java.util.List<java.lang.String> requiredJarFiles,
                                             java.util.List<java.net.URL> requiredClasspaths)
                                      throws java.io.IOException
        Specified by:
        registerFunctionInstance in interface FunctionCacheManager
        Throws:
        java.io.IOException
      • registerFunctionInstanceWithArchive

        public void registerFunctionInstanceWithArchive​(java.lang.String fid,
                                                        java.lang.String eid,
                                                        java.lang.String narArchive,
                                                        java.lang.String narExtractionDirectory)
                                                 throws java.io.IOException
        Specified by:
        registerFunctionInstanceWithArchive in interface FunctionCacheManager
        Throws:
        java.io.IOException
      • close

        public void close()
        Description copied from interface: FunctionCacheManager
        Close the cache manager to release created class loaders.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface FunctionCacheManager