|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.node.JPPFContainer
public abstract class JPPFContainer
Instances of this class represent dynamic class loading, and serialization/deserialization, capabilities, associated
with a specific client application.
The application is identified through a unique uuid. This class effectively acts as a container for the classes of
a client application, a provides the methods to enable the transport, serialization and deserialization of these classes.
| Nested Class Summary | |
|---|---|
protected class |
JPPFContainer.ObjectDeserializationTask
Instances of this class are used to deserialize objects from an incoming message in parallel. |
| Field Summary | |
|---|---|
protected AbstractJPPFClassLoader |
classLoader
Class loader used for dynamic loading and updating of client classes. |
protected SerializationHelper |
helper
Utility for deserialization and serialization. |
protected List<String> |
uuidPath
The unique identifier for the submitting application. |
| Constructor Summary | |
|---|---|
JPPFContainer(List<String> uuidPath,
AbstractJPPFClassLoader classLoader)
Initialize this container with a specified application uuid. |
|
| Method Summary | |
|---|---|
Object |
deserializeObject(byte[] data)
Deserialize an object from a socket client. |
abstract int |
deserializeObjects(List<Object> list,
int count,
ExecutorService executor)
Deserialize a number of objects from the I/O channel. |
String |
getAppUuid()
Get the unique identifier for the submitting application. |
AbstractJPPFClassLoader |
getClassLoader()
Get the main class loader for this container. |
void |
init()
Initialize this node's resources. |
protected void |
initHelper()
Get the main classloader for the node. |
void |
setUuidPath(List<String> uuidPath)
Set the unique identifier for the submitting application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SerializationHelper helper
protected AbstractJPPFClassLoader classLoader
protected List<String> uuidPath
| Constructor Detail |
|---|
public JPPFContainer(List<String> uuidPath,
AbstractJPPFClassLoader classLoader)
throws Exception
uuidPath - the unique identifier of a submitting application.classLoader - the class loader for this container.
Exception - if an error occurs while initializing.| Method Detail |
|---|
public final void init()
throws Exception
Exception - if an error is raised during initialization.
public abstract int deserializeObjects(List<Object> list,
int count,
ExecutorService executor)
throws Throwable
list - a list holding the resulting deserialized objects.count - the number of objects to deserialize.executor - the number of objects to deserialize.
Throwable - if an error occurs while deserializing.
public Object deserializeObject(byte[] data)
throws Exception
data - the array of bytes to deserialize into an object.
Exception - if an error occurs while deserializing.public AbstractJPPFClassLoader getClassLoader()
ClassLoader used for loading the classes of the framework.
protected void initHelper()
throws Exception
Exception - if an error occcurs while instantiating the class loader.public String getAppUuid()
public void setUuidPath(List<String> uuidPath)
uuidPath - the application uuid as a string.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||