Package org.jppf.server.nio.classloader
Class ClassCache
java.lang.Object
org.jppf.server.nio.classloader.ClassCache
A cache for resources loaded by client class loaders.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getCacheContent(String uuid, String name) Get a resource definition from the resource cache.voidsetCacheContent(String uuid, String name, byte[] content) Add a resource content to the class cache.
-
Constructor Details
-
ClassCache
public ClassCache()
-
-
Method Details
-
setCacheContent
Add a resource content to the class cache.- Parameters:
uuid- uuid of the resource provider.name- name of the resource.content- content of the resource.
-
getCacheContent
Get a resource definition from the resource cache.- Parameters:
uuid- uuid of the resource provider.name- name of the resource.- Returns:
- the content of the resource as an array of bytes.
-