mandala.jacob.remote.rmi
Class RegistryCreator

java.lang.Object
  extended bymandala.jacob.remote.rmi.RegistryCreator

public class RegistryCreator
extends Object

Registry creator.

Version:
$Revision: 1.2 $
Author:
eipi
See Also:
LocateRegistry

Field Summary
static Syslog syslog
           
 
Constructor Summary
RegistryCreator()
           
 
Method Summary
static String createRegistry()
          Creates a registry on the Registry.REGISTRY_PORT.
static String createRegistry(int port)
          Creates a registry on the specified port.
static void main(String[] args)
          Creates a registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

syslog

public static final Syslog syslog
Constructor Detail

RegistryCreator

public RegistryCreator()
Method Detail

main

public static void main(String[] args)
                 throws Throwable

Creates a registry.

Note that when no port is specified in args, the registry is created on the the naming.Registry.REGISTRY_PORT.

Throws:
Throwable
See Also:
Registry

createRegistry

public static String createRegistry()
                             throws Throwable

Creates a registry on the Registry.REGISTRY_PORT.

Returns:
a String value
Throws:
Throwable - if an error occurs
See Also:
Registry

createRegistry

public static String createRegistry(int port)
                             throws Throwable

Creates a registry on the specified port.

Parameters:
port - an int value
Returns:
the url where objects must be binded
Throws:
Exception - if an error occurs
Throwable


Mandala help mailing list