Class SelfAwareRegistry
- java.lang.Object
-
- org.smallmind.nutsnbolts.spring.remote.SelfAwareRegistry
-
-
Field Summary
-
Fields inherited from interface java.rmi.registry.Registry
REGISTRY_PORT
-
-
Constructor Summary
Constructors Constructor Description SelfAwareRegistry()SelfAwareRegistry(String host, int port, Registry internalRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(String name, Remote obj)StringgetHost()intgetPort()String[]list()Remotelookup(String name)voidrebind(String name, Remote obj)voidsetHost(String host)voidsetInternalRegistry(Registry internalRegistry)voidsetPort(int port)voidunbind(String name)
-
-
-
Method Detail
-
setInternalRegistry
public void setInternalRegistry(Registry internalRegistry)
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
lookup
public Remote lookup(String name) throws RemoteException, NotBoundException
- Specified by:
lookupin interfaceRegistry- Throws:
RemoteExceptionNotBoundException
-
bind
public void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException
- Specified by:
bindin interfaceRegistry- Throws:
RemoteExceptionAlreadyBoundException
-
unbind
public void unbind(String name) throws RemoteException, NotBoundException
- Specified by:
unbindin interfaceRegistry- Throws:
RemoteExceptionNotBoundException
-
rebind
public void rebind(String name, Remote obj) throws RemoteException
- Specified by:
rebindin interfaceRegistry- Throws:
RemoteException
-
list
public String[] list() throws RemoteException
- Specified by:
listin interfaceRegistry- Throws:
RemoteException
-
-