|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdsu.rmi.registry.Registrar
Registrar is a client that can be used to register remote objects with a UniVMRegistry. Create a Registrar with host and port of the machine that is running the UniVMRegistry. You can bind objects to a UniVMRegistry on a remote host. Object bound to the UniVMRegistry are run in the VM running the UniVMRegistry, not the VM running the Registrar.
UniVMRegistry
Constructor Summary | |
Registrar()
Create a Registrar for the UniVMRegistry on current host using the default rmi registry port. |
|
Registrar(int port)
Create a Registrar for the UniVMRegistry on current host using the given port. |
|
Registrar(java.lang.String host)
Create a Registrar for the UniVMRegistry on given host using the default rmi registry port. |
|
Registrar(java.lang.String host,
int port)
Create a Registrar for the UniVMRegistry on given host using the given port. |
Method Summary | |
void |
bind(java.lang.String name,
java.rmi.Remote object)
Binds the name to the specified remote object. |
java.lang.String[] |
list()
Returns an array of the names in the registry. |
java.rmi.Remote |
lookup(java.lang.String name)
Returns the remote object associated with the specified name in the registry. |
void |
rebind(java.lang.String name,
java.rmi.Remote object)
Rebind the name to a new object, replacing any existing binding. |
void |
rebind(java.lang.String name,
java.lang.String className)
Rebind the name to a new object, created from the class indicated by className, replacing any existing binding. |
void |
unbind(java.lang.String name)
Unbind the name. |
static java.lang.String |
verboseRebind(int port,
java.lang.String name,
java.lang.String className)
Binds the name to the specified remote object on locat registry on given port. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Registrar() throws java.rmi.RemoteException
public Registrar(int port) throws java.rmi.RemoteException
public Registrar(java.lang.String host) throws java.rmi.RemoteException
public Registrar(java.lang.String host, int port) throws java.rmi.RemoteException
Method Detail |
public java.lang.String[] list() throws java.rmi.RemoteException
public void rebind(java.lang.String name, java.lang.String className) throws java.rmi.RemoteException
className
- Full class name, used to create remote object.
Class must implement java.rmi.Remotepublic void rebind(java.lang.String name, java.rmi.Remote object) throws java.rmi.RemoteException
public void bind(java.lang.String name, java.rmi.Remote object) throws java.rmi.RemoteException, java.rmi.AlreadyBoundException
public void unbind(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.rmi.AccessException
public java.rmi.Remote lookup(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.rmi.AccessException
public static java.lang.String verboseRebind(int port, java.lang.String name, java.lang.String className) throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |