|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.carol.cmi.RegistryImpl
public final class 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 |
bindCluster(java.lang.String n,
byte[] obj,
java.net.URL[] urls)
Bind a cluster entry |
void |
bindSingle(java.lang.String n,
java.rmi.Remote obj)
Bind a single entry |
static org.objectweb.carol.cmi.RegistryInternal |
getRegistry()
Get a reference to the current registry |
java.lang.String[] |
list()
Get the entries list |
java.lang.Object |
lookup(java.lang.String n)
Retrieve an object by a name |
java.lang.Object |
lookup(java.lang.String n,
java.net.URL[] urls)
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 |
rebindCluster(java.lang.String n,
byte[] obj,
java.net.URL[] urls)
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 encountered
public static org.objectweb.carol.cmi.RegistryInternal getRegistry()
throws ServerConfigException
ServerConfigException - if the registry is not started
public java.lang.Object lookup(java.lang.String n,
java.net.URL[] urls)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
n - name to searchurls - classpath to use to carry out the lookup
java.rmi.NotBoundException - if entry is not found
java.rmi.RemoteException - if an exception is encountered
public java.lang.Object lookup(java.lang.String n)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
n - name to search
java.rmi.NotBoundException - if entry is not found
java.rmi.RemoteException - if an exception is encountered
public void bindSingle(java.lang.String n,
java.rmi.Remote obj)
throws java.rmi.AlreadyBoundException,
java.rmi.RemoteException
n - nameobj - object
java.rmi.AlreadyBoundException - if the entry is already bound
java.rmi.RemoteException - if an exception is encountered
public void rebindSingle(java.lang.String n,
java.rmi.Remote obj)
throws java.rmi.RemoteException
n - nameobj - object
java.rmi.RemoteException - if an exception is encountered
public void bindCluster(java.lang.String n,
byte[] obj,
java.net.URL[] urls)
throws java.rmi.AlreadyBoundException,
java.rmi.RemoteException
n - keyobj - array of objectsurls - classpath to use to carry out the bind
java.rmi.AlreadyBoundException - if the entry is already bound
java.rmi.RemoteException - if an exception is encountered
public void bindCluster(java.lang.String n,
byte[] obj)
throws java.rmi.AlreadyBoundException,
java.rmi.RemoteException
n - cluster nameobj - array of objects
java.rmi.AlreadyBoundException - if the entry is already bound
java.rmi.RemoteException - if an exception is encountered
public void unbind(java.lang.String n)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
n - entry to unregister
java.rmi.NotBoundException - if entry is not found
java.rmi.RemoteException - if an exception is encountered
public void rebindCluster(java.lang.String n,
byte[] obj,
java.net.URL[] urls)
throws java.rmi.RemoteException
n - cluster nameobj - array of objectsurls - classpath to use to carry out the rebind
java.rmi.RemoteException - if an exception is encountered
public void rebindCluster(java.lang.String n,
byte[] obj)
throws java.rmi.RemoteException
n - cluster nameobj - array of objects
java.rmi.RemoteException - if an exception is encountered
public java.lang.String[] list()
throws java.rmi.RemoteException
java.rmi.RemoteException - if Exception is encountered
public void test()
throws java.rmi.RemoteException
java.rmi.RemoteException - if exception is encountered
public 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 | |||||||||