public class GridPeerDeployAwareAdapter extends Object implements GridPeerDeployAware
| Modifier and Type | Field and Description |
|---|---|
protected GridPeerDeployAware |
pda
Peer deploy aware class.
|
| Constructor and Description |
|---|
GridPeerDeployAwareAdapter() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
classLoader()
Gets class loader for the class.
|
Class<?> |
deployClass()
Gets top level user class being deployed.
|
void |
peerDeployLike(Object obj)
Sets object that from which peer deployment information
will be copied, i.e. this lambda object will be peer deployed
using the same class loader as given object.
|
protected transient GridPeerDeployAware pda
public void peerDeployLike(Object obj)
Note that in most cases Ignite attempts to automatically call this method whenever lambda classes like closures and predicates are created that wrap user object (the peer deploy information in such cases will be copied from the user object).
In general, if user gets class not found exception during peer loading it is very likely that peer deploy information was lost during wrapping of one object into another.
obj - Peer deploy aware.public Class<?> deployClass()
deployClass in interface GridPeerDeployAwarepublic ClassLoader classLoader()
GridPeerDeployAware.deployClass() as well as all of its
dependencies.
Note that in most cases the class loader returned from this method
and the class loader for the class returned from GridPeerDeployAware.deployClass() method
will be the same. If they are not the same, it is required that the class loader
returned from this method still has to be able to load the deploy class and all its
dependencies.
classLoader in interface GridPeerDeployAware
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017