|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs138.launch.LauncherFactory
public final class LauncherFactory
Factory class for launching nodes and initializing services. All methods take the class type that you are trying to launch and this deals with spawning a new jvm on a specific host and launching.
| Constructor Summary | |
|---|---|
LauncherFactory()
|
|
| Method Summary | |
|---|---|
static void |
initialize(boolean startGUI)
This method will start the ServiceController on the port specified by the properties file. |
static java.lang.String |
launchLocalNode(java.lang.Class<? extends ManageableNode> clazz)
Creates a new node in a new JVM on the local host. |
static java.lang.String |
launchNode(java.lang.Class<? extends ManageableNode> clazz,
java.lang.String host,
int port)
Creates a new node in a new JVM on the specified host. |
static java.lang.String |
launchRandomNode(java.lang.Class<? extends ManageableNode> clazz)
Creates a new node in a new JVM on the random host. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LauncherFactory()
| Method Detail |
|---|
public static java.lang.String launchLocalNode(java.lang.Class<? extends ManageableNode> clazz)
throws java.io.IOException
clazz - The Class type of the node to launch
java.io.IOException
public static java.lang.String launchNode(java.lang.Class<? extends ManageableNode> clazz,
java.lang.String host,
int port)
throws java.io.IOException
clazz - The Class type of the node to launchhost - The host that the new node should be launched on.port - The port that ServiceDiscovery is running on
java.io.IOException
public static java.lang.String launchRandomNode(java.lang.Class<? extends ManageableNode> clazz)
throws java.io.IOException
clazz - The Class type of the node to launch
java.io.IOExceptionpublic static void initialize(boolean startGUI)
startGUI - Starts the GUI if true.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||