|
||||||||||
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.jrmp.ManageableRegistry
public class ManageableRegistry
JRMP Registry without checks for bind This class do some invalid import on Sun classes and won't compile on free JVM.
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,
java.net.InetAddress inetAddress)
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/falsepublic java.rmi.Remote lookup(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException
lookup
in interface java.rmi.registry.Registry
lookup
in class sun.rmi.registry.RegistryImpl
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 boundpublic void bind(java.lang.String name, java.rmi.Remote obj) throws java.rmi.RemoteException, java.rmi.AlreadyBoundException, java.rmi.AccessException
bind
in interface java.rmi.registry.Registry
bind
in class sun.rmi.registry.RegistryImpl
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 bindpublic 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
.
unbind
in interface java.rmi.registry.Registry
unbind
in class sun.rmi.registry.RegistryImpl
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 authorizedpublic void rebind(java.lang.String name, java.rmi.Remote obj) throws java.rmi.RemoteException, java.rmi.AccessException
rebind
in interface java.rmi.registry.Registry
rebind
in class sun.rmi.registry.RegistryImpl
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 bindpublic java.lang.String[] list() throws java.rmi.RemoteException
list
in interface java.rmi.registry.Registry
list
in class sun.rmi.registry.RegistryImpl
java.rmi.RemoteException
- if a naming exception is encounteredpublic static java.rmi.registry.Registry createManagableRegistry(int port, int objectPort, java.net.InetAddress inetAddress) throws java.rmi.RemoteException
port
- registry portobjectPort
- exported objects portinetAddress
- ip to use for the bind (instead of using all interfaces)
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 |