|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.node.NodeRunner
public class NodeRunner
Bootstrap class for lauching a JPPF node. The node class is dynamically loaded from a remote server.
| Nested Class Summary | |
|---|---|
static class |
NodeRunner.ShutdownOrRestart
Task used to terminate the JVM. |
| Constructor Summary | |
|---|---|
NodeRunner()
|
|
| Method Summary | |
|---|---|
static MonitoredNode |
createNode()
Start the node. |
static void |
discoverDriver()
Automatically discover the server connection information using a datagram multicast. |
static AbstractJPPFClassLoader |
getJPPFClassLoader()
Get the main classloader for the node. |
static MonitoredNode |
getNode()
Get the JPPF node. |
static Object |
getPersistentData(Object key)
Get a persistent object given its key. |
static String |
getUuid()
This node's universal identifier. |
static void |
main(String... args)
Run a node as a standalone application. |
static Object |
removePersistentData(Object key)
Remove a persistent object. |
static void |
setPersistentData(Object key,
Object value)
Set a persistent object with the specified key. |
static void |
setSecurity()
Set the security manager with the permission granted in the policy file. |
static void |
shutdown(MonitoredNode node,
boolean restart)
Shutdown and eventually restart the node. |
static void |
start(String... args)
Run a node as a standalone application. |
static void |
stop(String... args)
Run a node as a standalone application. |
static void |
unsetSecurity()
Set the security manager with the permission granted in the policy file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeRunner()
| Method Detail |
|---|
public static void main(String... args)
args - not used.public static void start(String... args)
args - not used.public static void stop(String... args)
args - not used.
public static MonitoredNode createNode()
throws Exception
MonitoredNode instance.
Exception - if the node failed to run or couldn't connect to the server.public static void discoverDriver()
public static void setSecurity()
throws Exception
Exception - if the security could not be set.public static void unsetSecurity()
public static AbstractJPPFClassLoader getJPPFClassLoader()
AbstractJPPFClassLoader used for loading the classes of the framework.
public static void setPersistentData(Object key,
Object value)
key - the key associated with the object's value.value - the object to persist.public static Object getPersistentData(Object key)
key - the key used to retrieve the persistent object.
public static Object removePersistentData(Object key)
key - the key associated with the object to remove.
public static MonitoredNode getNode()
MonitoredNode instance.
public static void shutdown(MonitoredNode node,
boolean restart)
node - the node to shutdown or restart.restart - determines whether this node should be restarted by the node launcher.public static String getUuid()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||