|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
sun.rmi.registry.RegistryImpl
org.objectweb.carol.jndi.registry.ManageableRegistry
JRMP Registry without checks for bind
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface java.rmi.registry.Registry |
REGISTRY_PORT |
| Method Summary | |
void |
bind(java.lang.String name,
java.rmi.Remote obj)
Binds a name to an object, overwriting any existing binding. |
static java.rmi.registry.Registry |
createManagableRegistry(int port,
int objectPort)
Create a new registry on given port and use exported object port given |
java.lang.String[] |
list()
Enumerates the names bound in the named context, along with the class names of objects bound to them. |
java.rmi.Remote |
lookup(java.lang.String name)
Retrieves the named object. |
static void |
main(java.lang.String[] args)
Start a new Registry |
void |
purge()
Remove objects of the registry |
void |
rebind(java.lang.String name,
java.rmi.Remote obj)
ReBinds a name to an object, overwriting any existing binding. |
void |
setVerbose(boolean v)
Set verbosity |
void |
unbind(java.lang.String name)
Unbinds the named object. |
| Methods inherited from class sun.rmi.registry.RegistryImpl |
checkAccess, getID |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void setVerbose(boolean v)
v - true/false
public java.rmi.Remote lookup(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException
name - the name of the object to look up
java.rmi.RemoteException - if a naming exception is encountered
java.rmi.NotBoundException - if object is not bound
public void bind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.RemoteException,
java.rmi.AlreadyBoundException,
java.rmi.AccessException
name - the name to bind; may not be emptyobj - the object to bind; possibly null
java.rmi.RemoteException - if a bind cannot be done exception is encountered
java.rmi.AlreadyBoundException - if object is already bound
java.rmi.AccessException - if cannot bind
public void unbind(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException,
java.rmi.AccessException
name from the target context--that named by all but the
terminal atomic part of name.
name - the name to unbind; may not be empty
java.rmi.RemoteException - if a naming exception is encountered
java.rmi.NotBoundException - if object was not bound
java.rmi.AccessException - if unbind is not authorized
public void rebind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.RemoteException,
java.rmi.AccessException
name - the name to bind; may not be emptyobj - the object to bind; possibly null
java.rmi.RemoteException - if a bind cannot be done exception is encountered
java.rmi.AccessException - if cannot bind
public java.lang.String[] list()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a naming exception is encountered
public static java.rmi.registry.Registry createManagableRegistry(int port,
int objectPort)
throws java.rmi.RemoteException
port - registry portobjectPort - exported objects port
java.rmi.RemoteException - if registry cannot be builtpublic void purge()
public static void main(java.lang.String[] args)
args - arguments for starting registry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||