|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.classloader.JPPFResourceWrapper
public class JPPFResourceWrapper
Instances of this class encapsulate the necessary information used by the network classloader, for sending class definition requests as well as receiving the class definitions.
| Nested Class Summary | |
|---|---|
static class |
JPPFResourceWrapper.State
Enumeration of the possible states for this resource wrapper. |
| Constructor Summary | |
|---|---|
JPPFResourceWrapper()
|
|
| Method Summary | |
|---|---|
void |
addUuid(String uuid)
Add a uuid to the uuid path of this resource wrapper. |
byte[] |
getCallable()
Get the serialized callback to execute code on the client side. |
Object |
getData(String key)
Get the metadata corresponding to the specified key. |
byte[] |
getDefinition()
Get the actual definition of the requested class. |
String |
getManagementId()
Get the identifier for the driver's management (JMX) server. |
String |
getName()
Get the name of the class whose definition is requested. |
String |
getProviderUuid()
Get the uuid sent by a node when it first contacts a resource provider. |
String |
getRequestUuid()
Get the uuid for the orignal task bundle that triggered this resource request. |
JPPFResourceWrapper.State |
getState()
Get the state associated with this resource wrapper. |
TraversalList<String> |
getUuidPath()
Get a reference to the traversal list that Keeps and manages the uuid path list and the current position in it. |
boolean |
isAsResource()
Determine whether the resource is to be loaded using ClassLoader.getResource(). |
boolean |
isDynamic()
Determine whether the class should be loaded through the network classloader. |
void |
setAsResource(boolean asResource)
Set whether the resource is to be loaded using ClassLoader.getResource(). |
void |
setCallable(byte[] callable)
Set the serialized callback to execute code on the client side. |
void |
setData(String key,
Object value)
Get the metadata corresponding to the specified key. |
void |
setDefinition(byte[] definition)
Set the actual definition of the requested class. |
void |
setDynamic(boolean dynamic)
Set whether the class should be loaded through the network classloader. |
void |
setManagementId(String managementId)
Set the identifier for the driver's management (JMX) server. |
void |
setName(String name)
Set the name of the class whose definition is requested. |
void |
setProviderUuid(String providerUuid)
Set the uuid sent by a node when it first contacts a resource provider. |
void |
setRequestUuid(String requestUuid)
Set the uuid for the orignal task bundle that triggered this resource request. |
void |
setState(JPPFResourceWrapper.State state)
Set the state associated with this resource wrapper. |
void |
setUuidPath(TraversalList<String> uuidPath)
Set the reference to the traversal list that Keeps and manages the uuid path list and the current position in it. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFResourceWrapper()
| Method Detail |
|---|
public void addUuid(String uuid)
uuid - - the identifier as a string.public String getName()
public void setName(String name)
name - - the class name as a string.public byte[] getDefinition()
public void setDefinition(byte[] definition)
definition - - the class definition as an array of bytes.public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic - - true if the class should be loaded via the network classloader, false otherwise.public JPPFResourceWrapper.State getState()
State typesafe enumerated value.public void setState(JPPFResourceWrapper.State state)
state - - a State typesafe enumerated value.public TraversalList<String> getUuidPath()
public void setUuidPath(TraversalList<String> uuidPath)
uuidPath - - a traversal list of string elements.public String getProviderUuid()
public void setProviderUuid(String providerUuid)
providerUuid - - the uuid as a string.public boolean isAsResource()
ClassLoader.getResource().
public void setAsResource(boolean asResource)
ClassLoader.getResource().
asResource - - true if the resource is loaded using getResource(), false otherwise.public String getManagementId()
public void setManagementId(String managementId)
managementId - - the identifier as a string.public String getRequestUuid()
public void setRequestUuid(String requestUuid)
requestUuid - the uuid as a string.public byte[] getCallable()
byte[] instance.public void setCallable(byte[] callable)
callable - - a byte[] instance.public Object getData(String key)
key - - the string identifying the metadata.
public void setData(String key,
Object value)
key - - the string identifying the metadata.value - - the value of the metadata.public String toString()
toString in class Object
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||