|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.node.AbstractClassLoaderManager
public abstract class AbstractClassLoaderManager
Instances of this class manage the node's class loader and associated operations.
| Field Summary | |
|---|---|
protected AbstractJPPFClassLoader |
classLoader
Class loader used for dynamic loading and updating of client classes. |
protected LinkedList<JPPFContainer> |
containerList
A list retaining the container in chronological order of their creation. |
protected Map<String,JPPFContainer> |
containerMap
Mapping of containers to their corresponding application uuid. |
| Constructor Summary | |
|---|---|
AbstractClassLoaderManager()
|
|
| Method Summary | |
|---|---|
protected abstract AbstractJPPFClassLoader |
createClassLoader()
Create the class loader for this node. |
AbstractJPPFClassLoader |
getClassLoader()
Get the main classloader for the node. |
JPPFContainer |
getContainer(List<String> uuidPath)
Get a reference to the JPPF container associated with an application uuid. |
protected abstract Callable<AbstractJPPFClassLoader> |
newClassLoaderCreator(List<String> uuidPath)
Instantiate the callback used to create the class loader in each JPPFContainer. |
protected abstract JPPFContainer |
newJPPFContainer(List<String> uuidPath,
AbstractJPPFClassLoader cl)
Create a new container based on the uuid path and class loader. |
void |
setClassLoader(JPPFClassLoader cl)
Set the main classloader for the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractJPPFClassLoader classLoader
protected Map<String,JPPFContainer> containerMap
protected LinkedList<JPPFContainer> containerList
| Constructor Detail |
|---|
public AbstractClassLoaderManager()
| Method Detail |
|---|
public AbstractJPPFClassLoader getClassLoader()
ClassLoader used for loading the classes of the framework.protected abstract AbstractJPPFClassLoader createClassLoader()
JPPFClassLoader instance.public void setClassLoader(JPPFClassLoader cl)
cl - the class loader to set.
public JPPFContainer getContainer(List<String> uuidPath)
throws Exception
uuidPath - the uuid path containing the key to the container.
JPPFContainer instance.
Exception - if an error occcurs while getting the container.
protected abstract JPPFContainer newJPPFContainer(List<String> uuidPath,
AbstractJPPFClassLoader cl)
throws Exception
uuidPath - uuid path for the corresponding client.cl - the class loader to use.
JPPFContainer instance.
Exception - if any error occursprotected abstract Callable<AbstractJPPFClassLoader> newClassLoaderCreator(List<String> uuidPath)
JPPFContainer.
uuidPath - the uuid path containing the key to the container.
Callable instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||