|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.RegistryImpl
Server part of the CMI registry.
Field Summary | |
static java.lang.String |
REG_PREFIX
Registry prefix |
Method Summary | |
void |
bindCluster(java.lang.String n,
byte[] obj)
Bind a cluster entry |
void |
bindSingle(java.lang.String n,
java.rmi.Remote obj)
Bind a single entry |
java.lang.String[] |
list()
Get the entries list |
java.lang.Object |
lookup(java.lang.String n)
Retrieve an object by a name |
static void |
main(java.lang.String[] args)
Test purposes |
void |
rebindCluster(java.lang.String n,
byte[] obj)
Rebind a cluster entry |
void |
rebindSingle(java.lang.String n,
java.rmi.Remote obj)
Rebind a single entry |
static RegistryKiller |
start(int port)
Start the registry |
void |
test()
Test method |
void |
unbind(java.lang.String n)
Unbind an entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String REG_PREFIX
Method Detail |
public static RegistryKiller start(int port) throws java.rmi.RemoteException
port
- port number
java.rmi.RemoteException
- if an exception is encounteredpublic java.lang.Object lookup(java.lang.String n) throws java.rmi.NotBoundException, java.rmi.RemoteException
lookup
in interface org.objectweb.carol.cmi.RegistryInternal
n
- name to search
java.rmi.NotBoundException
- if entry is not found
java.rmi.RemoteException
- if an exception is encounteredpublic void bindSingle(java.lang.String n, java.rmi.Remote obj) throws java.rmi.AlreadyBoundException, java.rmi.RemoteException
bindSingle
in interface org.objectweb.carol.cmi.RegistryInternal
n
- nameobj
- object
java.rmi.AlreadyBoundException
- if the entry is already bound
java.rmi.RemoteException
- if an exception is encounteredpublic void rebindSingle(java.lang.String n, java.rmi.Remote obj) throws java.rmi.RemoteException
rebindSingle
in interface org.objectweb.carol.cmi.RegistryInternal
n
- nameobj
- object
java.rmi.RemoteException
- if an exception is encounteredpublic void bindCluster(java.lang.String n, byte[] obj) throws java.rmi.AlreadyBoundException, java.rmi.RemoteException
bindCluster
in interface org.objectweb.carol.cmi.RegistryInternal
n
- cluster nameobj
- array of objects
java.rmi.AlreadyBoundException
- if the entry is already bound
java.rmi.RemoteException
- if an exception is encounteredpublic void unbind(java.lang.String n) throws java.rmi.NotBoundException, java.rmi.RemoteException
unbind
in interface org.objectweb.carol.cmi.RegistryInternal
n
- entry to unregister
java.rmi.NotBoundException
- if entry is not found
java.rmi.RemoteException
- if an exception is encounteredpublic void rebindCluster(java.lang.String n, byte[] obj) throws java.rmi.RemoteException
rebindCluster
in interface org.objectweb.carol.cmi.RegistryInternal
n
- cluster nameobj
- array of objects
java.rmi.RemoteException
- if an exception is encounteredpublic java.lang.String[] list() throws java.rmi.RemoteException
list
in interface org.objectweb.carol.cmi.RegistryInternal
java.rmi.RemoteException
- if Exception is encounteredpublic void test() throws java.rmi.RemoteException
test
in interface org.objectweb.carol.cmi.RegistryInternal
java.rmi.RemoteException
- if exception is encounteredpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- program args
java.lang.Exception
- if error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |