org.objectweb.proactive
Class StartNode

java.lang.Object
  |
  +--org.objectweb.proactive.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.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)
          **For internal use only** Checks options from the arguments
protected  void createNode(java.lang.String nodeURL, boolean noRebind)
          **For internal use only** Creates the node at the given URL with the rebind option
protected static int getPort(java.lang.String nodeURL, int defaultValue)
          **For internal use only** Extracts the port number from the node URL
static void main(java.lang.String[] args)
          Starts a ProActive node on the localhost host usage: java org.objectweb.proactive.StartNode <node URL> [options]
where options are amongst
noClassServer : indicates not to create a ClassServer for JINI.
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
protected  void setProperties()
          **For internal use only** sets the properties needed for the node creation
 
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)
Starts a ProActive node on the localhost host usage: java org.objectweb.proactive.StartNode <node URL> [options]
where options are amongst
for instance: java org.objectweb.proactive.StartNode //localhost/node1
java org.objectweb.proactive.StartNode //localhost/node2 -noClassServer -noRebind


checkOptions

protected void checkOptions(java.lang.String[] args,
                            int start)
**For internal use only** Checks options from the arguments


readClassPath

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


setProperties

protected void setProperties()
**For internal use only** sets the properties needed for the node creation


createNode

protected void createNode(java.lang.String nodeURL,
                          boolean noRebind)
                   throws NodeException
**For internal use only** Creates the node at the given URL with the rebind option

NodeException

run

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

java.io.IOException
NodeException

checkOption

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


getPort

protected static int getPort(java.lang.String nodeURL,
                             int defaultValue)
**For internal use only** Extracts the port number from the node URL



Copyright © April 2004 INRIA All Rights Reserved.