|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.se.rmi.registry.Registry
public class Registry
A class to simplify the RMI register creation.
| Constructor Summary | |
|---|---|
Registry(RmiProperties properties)
Creates a new instance of Registry. |
|
| Method Summary | |
|---|---|
void |
deregisterRMIInterface()
Method deregisterRMIInterface. |
java.lang.String |
getRegistryHost()
|
int |
getRegistryPortNumber()
Get the registry port number. |
java.lang.String |
getRmiComponentContextName()
Get the RMI component context name. |
void |
initializeRegistry()
Initialize the registry. |
boolean |
isRegistryEmbedded()
|
void |
registerRMIInterface(org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext comp)
Method registerRMIInterface. |
void |
setCreateRegistry(boolean create)
Set createRegistry value. |
void |
setRegistryHost(java.lang.String registryHost)
|
void |
setRegistryPortNumber(int v)
Set the registry port number. |
void |
setRmiComponentContextName(java.lang.String n)
|
void |
shutDown(org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext comp)
Allow to shutdown RMI registry and unexport all linked remote objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Registry(RmiProperties properties)
properties - the RMI properties| Method Detail |
|---|
public int getRegistryPortNumber()
public void setRegistryPortNumber(int v)
v - the portpublic java.lang.String getRegistryHost()
public void setRegistryHost(java.lang.String registryHost)
public boolean isRegistryEmbedded()
true if the server registry is embedded to the componentpublic void setCreateRegistry(boolean create)
v - the ShouldCreateRegistrypublic java.lang.String getRmiComponentContextName()
public void setRmiComponentContextName(java.lang.String n)
n - the name of component context name
public void initializeRegistry()
throws java.rmi.RemoteException
java.rmi.RemoteException - Impossible to realize a remote access
public void registerRMIInterface(org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext comp)
throws java.rmi.RemoteException,
java.net.MalformedURLException,
java.rmi.AlreadyBoundException
comp - the component context
java.rmi.RemoteException - impossible to register this object
java.net.MalformedURLException - impossible to register this object
java.rmi.AlreadyBoundException - impossible to register this object
public void deregisterRMIInterface()
throws java.rmi.RemoteException,
java.net.MalformedURLException,
java.rmi.NotBoundException
java.rmi.RemoteException
java.rmi.RemoteException - impossible to register this object
java.net.MalformedURLException - impossible to register this object
java.rmi.NotBoundException - impossible to register this object
public void shutDown(org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext comp)
throws java.rmi.AccessException,
java.rmi.RemoteException,
java.rmi.NotBoundException
comp - the component context
java.rmi.AccessException
java.rmi.RemoteException
java.rmi.NotBoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||