org.jppf.server.node.remote
Class RemoteClassLoaderManager

java.lang.Object
  extended by org.jppf.server.node.AbstractClassLoaderManager
      extended by org.jppf.server.node.remote.RemoteClassLoaderManager

public class RemoteClassLoaderManager
extends AbstractClassLoaderManager

Concrete implementation of AbstractClassLoaderManager for a remote node.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from class org.jppf.server.node.AbstractClassLoaderManager
classLoader, containerList, containerMap
 
Method Summary
protected  AbstractJPPFClassLoader createClassLoader()
          Create the class loader for this node.
protected  Callable<AbstractJPPFClassLoader> newClassLoaderCreator(List<String> uuidPath)
          Instantiate the callback used to create the class loader in each JPPFContainer.
protected  JPPFContainer newJPPFContainer(List<String> uuidPath, AbstractJPPFClassLoader cl)
          Create a new container based on the uuid path and class loader.
 
Methods inherited from class org.jppf.server.node.AbstractClassLoaderManager
getClassLoader, getContainer, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createClassLoader

protected AbstractJPPFClassLoader createClassLoader()
Create the class loader for this node.

Specified by:
createClassLoader in class AbstractClassLoaderManager
Returns:
a JPPFClassLoader instance.

newJPPFContainer

protected JPPFContainer newJPPFContainer(List<String> uuidPath,
                                         AbstractJPPFClassLoader cl)
                                  throws Exception
Create a new container based on the uuid path and class loader.

Specified by:
newJPPFContainer in class AbstractClassLoaderManager
Parameters:
uuidPath - uuid path for the corresponding client.
cl - the class loader to use.
Returns:
a JPPFContainer instance.
Throws:
Exception - if any error occurs

newClassLoaderCreator

protected Callable<AbstractJPPFClassLoader> newClassLoaderCreator(List<String> uuidPath)
Instantiate the callback used to create the class loader in each JPPFContainer.

Specified by:
newClassLoaderCreator in class AbstractClassLoaderManager
Parameters:
uuidPath - the uuid path containing the key to the container.
Returns:
a Callable instance.


Copyright © 2005-2010 JPPF Team.