springs.util
Class RMILauncher

java.lang.Object
  |
  +--springs.util.RMILauncher

public class RMILauncher
extends java.lang.Object

Class that launches a RMI registry.

Author:
Sergio Ilarri Artigas

Field Summary
private  int _port
           
private  int _portClassServer
           
private  boolean _trace
           
private static org.jargp.ParameterDef[] BASE_PARAMETERS
          Command line parameter definitions.
 
Constructor Summary
RMILauncher()
           
 
Method Summary
static java.rmi.registry.Registry launchRMIRegistry(int port, boolean trace, boolean startClassServer, int portClassServer)
          Launches a RMI server.
 java.rmi.registry.Registry main()
          Main method.
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_port

private int _port

_portClassServer

private int _portClassServer

_trace

private boolean _trace

BASE_PARAMETERS

private static final org.jargp.ParameterDef[] BASE_PARAMETERS
Command line parameter definitions.

Constructor Detail

RMILauncher

public RMILauncher()
Method Detail

launchRMIRegistry

public static java.rmi.registry.Registry launchRMIRegistry(int port,
                                                           boolean trace,
                                                           boolean startClassServer,
                                                           int portClassServer)
Launches a RMI server.

Parameters:
port - the port number.
trace - a boolean indicating if verbose mode should be used.
startClassServer - a boolean indicating whether a class server must be started.
portClassServer - the port where to launch the class server.
Returns:
the created registry.
See Also:
String, Registry

main

public java.rmi.registry.Registry main()
Main method.

Returns:
the created registry.
See Also:
Registry

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - arguments. One is expected: the port number.
See Also:
String