|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.StartNode
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.
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 |
public static final int DEFAULT_CLASSFILE_SERVER_PORT
protected static final int DEFAULT_PORT
protected static final int MAX_RETRY
protected static final java.lang.String NO_REBIND_OPTION_NAME
protected static final java.lang.String NO_CLASS_SERVER_OPTION_NAME
protected static final java.lang.String NO_REGISTRY_OPTION_NAME
protected static final java.lang.String MULTICAST_LOCATOR_NAME
protected boolean noClassServer
protected boolean noRebind
protected boolean noRegistry
protected boolean multicastLocator
protected int registryPortNumber
protected java.lang.String classpath
protected java.lang.String nodeURL
Constructor Detail |
protected StartNode()
Method Detail |
public static void main(java.lang.String[] args)
protected void checkOptions(java.lang.String[] args, int start)
protected void readClassPath(java.lang.String[] args, int start)
protected void setProperties()
protected void createNode(java.lang.String nodeURL, boolean noRebind) throws NodeException
NodeException
protected void run() throws java.io.IOException, NodeException
java.io.IOException
NodeException
protected void checkOption(java.lang.String option)
protected static int getPort(java.lang.String nodeURL, int defaultValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |