public class RmiRegistry
extends java.lang.Object
Constructor and Description |
---|
RmiRegistry(HostedConnection context,
RpcConnection rpc,
short rmiId,
byte defaultChannel) |
RmiRegistry(RpcConnection rpc,
short rmiId,
byte defaultChannel) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRemoteClass(ClassInfo info) |
protected void |
addRemoteObject(byte channel,
short objectId,
java.lang.String name,
ClassInfo typeInfo) |
<T> T |
getLocalObject(java.lang.Class<T> type)
Returns a local object that was previously registered with share() using
just type registration.
|
<T> T |
getLocalObject(java.lang.String name,
java.lang.Class<T> type)
Returns a local object that was previously registered with share() using
name registration.
|
<T> T |
getRemoteObject(java.lang.Class<T> type)
Looks up a remote object by type and returns a local proxy to the remote object
that was shared on the other end of the network connection.
|
<T> T |
getRemoteObject(java.lang.String name,
java.lang.Class<T> type)
Looks up a remote object by name and returns a local proxy to the remote object
that was shared on the other end of the network connection.
|
protected java.lang.Object |
invokeLocal(short objectId,
short procId,
java.lang.Object[] args)
Handle the actual remote object method calls.
|
protected java.lang.Object |
invokeRemote(byte channel,
short objectId,
short procId,
CallType callType,
java.lang.Object[] args) |
protected void |
removeRemoteObject(short objectId) |
protected void |
rmiUpdate(short procId,
java.lang.Object[] args)
Handle remote object registry updates from the other end.
|
<T> void |
share(byte channel,
java.lang.String name,
T object,
java.lang.Class<? super T> type)
Exposes, through a specific connection channel, the specified object to
the other end of the connection as the specified interface type and associates
it with the specified name.
|
<T> void |
share(byte channel,
T object,
java.lang.Class<? super T> type)
Exposes, through a specific connection channel, the specified object
to the other end of the connection as the specified interface type.
|
<T> void |
share(java.lang.String name,
T object,
java.lang.Class<? super T> type)
Exposes the specified object to the other end of the connection as
the specified interface type and associates it with the specified name.
|
<T> void |
share(T object,
java.lang.Class<? super T> type)
Exposes the specified object to the other end of the connection as
the specified interface type.
|
public RmiRegistry(RpcConnection rpc, short rmiId, byte defaultChannel)
public RmiRegistry(HostedConnection context, RpcConnection rpc, short rmiId, byte defaultChannel)
public <T> void share(T object, java.lang.Class<? super T> type)
public <T> void share(byte channel, T object, java.lang.Class<? super T> type)
public <T> void share(java.lang.String name, T object, java.lang.Class<? super T> type)
public <T> void share(byte channel, java.lang.String name, T object, java.lang.Class<? super T> type)
public <T> T getLocalObject(java.lang.Class<T> type)
public <T> T getLocalObject(java.lang.String name, java.lang.Class<T> type)
public <T> T getRemoteObject(java.lang.Class<T> type)
public <T> T getRemoteObject(java.lang.String name, java.lang.Class<T> type)
protected void addRemoteClass(ClassInfo info)
protected void removeRemoteObject(short objectId)
protected void addRemoteObject(byte channel, short objectId, java.lang.String name, ClassInfo typeInfo)
protected java.lang.Object invokeRemote(byte channel, short objectId, short procId, CallType callType, java.lang.Object[] args)
protected void rmiUpdate(short procId, java.lang.Object[] args)
protected java.lang.Object invokeLocal(short objectId, short procId, java.lang.Object[] args)