public class ClientNode extends java.lang.Object implements java.lang.reflect.InvocationHandler, Exportable
On creation the client node will lookup up various things on the server on configure the proxy, register for notifications and start a resync.
It is possible that a serverside node has bean created and destroyed and that the client hasn't caught up. In this case dead placeholder nodes are put in the tree. They should be short lived, and removed when the client catches up with the notifications.
Modifier and Type | Class and Description |
---|---|
class |
ClientNode.Handle |
Modifier and Type | Method and Description |
---|---|
static ClientNode.Handle |
createProxyFor(long remoteId,
ClientSideToolkit toolkit)
Static factory method.
|
Transportable |
exportTransportable()
Part of the implementation of the HostRelative interface.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called by the proxy to invoke a method.
|
java.lang.String |
toString() |
public static ClientNode.Handle createProxyFor(long remoteId, ClientSideToolkit toolkit)
remoteId
- The remote node id.toolkit
- The server connection.ClientNode.Handle
that contains the proxy object that implements its interfaces and
a means of destroying this node.java.rmi.RemoteException
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
public Transportable exportTransportable()
exportTransportable
in interface Exportable