Package com.jme3.network.service.rmi
Class RmiRegistry
java.lang.Object
com.jme3.network.service.rmi.RmiRegistry
- 
Constructor SummaryConstructorsConstructorDescriptionRmiRegistry(HostedConnection context, RpcConnection rpc, short rmiId, byte defaultChannel) RmiRegistry(RpcConnection rpc, short rmiId, byte defaultChannel) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddRemoteClass(ClassInfo info) protected voidaddRemoteObject(byte channel, short objectId, String name, ClassInfo typeInfo) <T> TgetLocalObject(Class<T> type) Returns a local object that was previously registered with share() using just type registration.<T> TgetLocalObject(String name, Class<T> type) Returns a local object that was previously registered with share() using name registration.<T> TgetRemoteObject(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> TgetRemoteObject(String name, 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 ObjectinvokeLocal(short objectId, short procId, Object[] args) Handle the actual remote object method calls.protected ObjectinvokeRemote(byte channel, short objectId, short procId, CallType callType, Object[] args) protected voidremoveRemoteObject(short objectId) protected voidHandle remote object registry updates from the other end.<T> voidExposes, 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> voidExposes, through a specific connection channel, the specified object to the other end of the connection as the specified interface type.<T> voidExposes the specified object to the other end of the connection as the specified interface type and associates it with the specified name.<T> voidExposes the specified object to the other end of the connection as the specified interface type.
- 
Constructor Details- 
RmiRegistry
- 
RmiRegistry
 
- 
- 
Method Details
- 
getLocalObjectReturns a local object that was previously registered with share() using just type registration.
- 
getLocalObjectReturns a local object that was previously registered with share() using name registration.
- 
getRemoteObjectLooks 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. If this is called from a client then it is accessing a shared object registered on the server. If this is called from the server then it is accessing a shared object registered on the client.
- 
getRemoteObjectLooks 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. If this is called from a client then it is accessing a shared object registered on the server. If this is called from the server then it is accessing a shared object registered on the client.
- 
addRemoteClass
- 
removeRemoteObjectprotected void removeRemoteObject(short objectId) 
- 
addRemoteObject
- 
invokeRemote
- 
rmiUpdateHandle remote object registry updates from the other end.
- 
invokeLocalHandle the actual remote object method calls.