org.objectweb.carol.jndi.registry
Class RegistryCreator

java.lang.Object
  extended by org.objectweb.carol.jndi.registry.RegistryCreator

public class RegistryCreator
extends java.lang.Object

Create registry with options like fixing exported objects port number

Author:
Florent Benoit

Method Summary
static java.rmi.registry.Registry createRegistry(int port, int objectPort, java.net.InetAddress inetAddress, java.lang.String protocol)
          Create a new registry on given port and use exported object port given
static void main(java.lang.String[] args)
          Start a new Registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRegistry

public static java.rmi.registry.Registry createRegistry(int port,
                                                        int objectPort,
                                                        java.net.InetAddress inetAddress,
                                                        java.lang.String protocol)
                                                 throws java.rmi.RemoteException
Create a new registry on given port and use exported object port given

Parameters:
port - registry port
objectPort - exported objects port
inetAddress - ip to use for the bind (instead of using all interfaces)
protocol - associated protocol
Returns:
a new Registry object
Throws:
java.rmi.RemoteException - if registry cannot be built

main

public static void main(java.lang.String[] args)
Start a new Registry

Parameters:
args - arguments for starting registry