org.objectweb.proactive.core.node
Class StartNode

java.lang.Object
  extended by org.objectweb.proactive.core.node.StartNode

public class StartNode
extends java.lang.Object

This class is a utility class allowing to start a ProActive node with a JVM. It is very useful to start a node on a given host that will receive later active objects created by other distributed applications.

This class has a main method and can be used directly from the java command.
use
   java org.objectweb.proactive.core.node.StartNode
to print the options from command line or see the java doc of the main method.

A node represents the minimum services ProActive needs to work with a remote JVM. Any JVM that is going to interact with active objects has at least one associated node. The node must have a remote implementation that allow an object to remotely invoke its methods.

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team

Field Summary
protected  java.lang.String classpath
           
static int DEFAULT_CLASSFILE_SERVER_PORT
           
protected static int DEFAULT_PORT
           
protected static int MAX_RETRY
           
protected static java.lang.String MULTICAST_LOCATOR_NAME
           
protected  boolean multicastLocator
           
protected static java.lang.String NO_CLASS_SERVER_OPTION_NAME
           
protected static java.lang.String NO_REBIND_OPTION_NAME
           
protected static java.lang.String NO_REGISTRY_OPTION_NAME
           
protected  boolean noClassServer
           
protected  java.lang.String nodeURL
           
protected  boolean noRebind
           
protected  boolean noRegistry
           
protected  int registryPortNumber
           
 
Constructor Summary
protected StartNode()
           
 
Method Summary
protected  void checkOption(java.lang.String option)
          **For internal use only** Checks one given option from the arguments
protected  void checkOptions(java.lang.String[] args, int start)
           
protected  void createNode(java.lang.String nodeURL, boolean noRebind)
           
static void main(java.lang.String[] args)
           
protected  void readClassPath(java.lang.String[] args, int start)
          **For internal use only** Reads the classpath from the arguments
protected  void run()
          **For internal use only** Run the complete creation of the node step by step by invoking the other helper methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLASSFILE_SERVER_PORT

public static final int DEFAULT_CLASSFILE_SERVER_PORT
See Also:
Constant Field Values

DEFAULT_PORT

protected static final int DEFAULT_PORT
See Also:
Constant Field Values

MAX_RETRY

protected static final int MAX_RETRY
See Also:
Constant Field Values

NO_REBIND_OPTION_NAME

protected static final java.lang.String NO_REBIND_OPTION_NAME
See Also:
Constant Field Values

NO_CLASS_SERVER_OPTION_NAME

protected static final java.lang.String NO_CLASS_SERVER_OPTION_NAME
See Also:
Constant Field Values

NO_REGISTRY_OPTION_NAME

protected static final java.lang.String NO_REGISTRY_OPTION_NAME
See Also:
Constant Field Values

MULTICAST_LOCATOR_NAME

protected static final java.lang.String MULTICAST_LOCATOR_NAME
See Also:
Constant Field Values

noClassServer

protected boolean noClassServer

noRebind

protected boolean noRebind

noRegistry

protected boolean noRegistry

multicastLocator

protected boolean multicastLocator

registryPortNumber

protected int registryPortNumber

classpath

protected java.lang.String classpath

nodeURL

protected java.lang.String nodeURL
Constructor Detail

StartNode

protected StartNode()
Method Detail

main

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

checkOptions

protected void checkOptions(java.lang.String[] args,
                            int start)

readClassPath

protected void readClassPath(java.lang.String[] args,
                             int start)
**For internal use only** Reads the classpath from the arguments


createNode

protected void createNode(java.lang.String nodeURL,
                          boolean noRebind)
                   throws NodeException,
                          java.rmi.AlreadyBoundException
Throws:
NodeException
java.rmi.AlreadyBoundException

run

protected void run()
            throws java.io.IOException,
                   NodeException,
                   java.rmi.AlreadyBoundException
**For internal use only** Run the complete creation of the node step by step by invoking the other helper methods

Throws:
java.io.IOException
NodeException
java.rmi.AlreadyBoundException

checkOption

protected void checkOption(java.lang.String option)
**For internal use only** Checks one given option from the arguments



Copyright 2001-2007 INRIA All Rights Reserved.