|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.node.NodeFactory
The NodeFactory
provides a generic way to create and lookup Node
without protocol specific code (such as RMI or Jini).
NodeFactory
provides a set of static methods to create and lookup Node
.
To create a node it is only necessary to associate the protocol in the node url.
For instance :
rmi://localhost/node1 jini://localhost/node2
As long as a protocol specific factory has been registered for the given protocol, the creation of the node will be delegated to the right factory.
This class also provide the concept of default node and default protocol. When the protocol is not specified in the node URL, the default protocol is used. When an active object is created in the local JVM but without being attached to any node, a default node is created to hold that active object.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
NodeFactory()
|
Method Summary | |
static Node |
createNode(java.lang.String nodeURL)
Creates a new node on the local machine. |
static Node |
createNode(java.lang.String url,
boolean replacePreviousBinding,
PolicyServer ps,
java.lang.String vnname)
Creates a new node on the local machine. |
static Node |
getDefaultNode()
Returns the reference to the default node associated to the current JVM If no default node yet exists, it creates a new one. |
static Node |
getNode(java.lang.String nodeURL)
Returns the reference to the node located at the given url. |
static boolean |
isNodeLocal(Node node)
Returns true if the given node belongs to this JVM false else. |
static void |
killNode(java.lang.String nodeURL)
Kills the node of the given url |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Constructor Detail |
public NodeFactory()
Method Detail |
public static Node getDefaultNode() throws NodeException
NodeException
- if the default node cannot be instantiatedpublic static boolean isNodeLocal(Node node)
public static Node createNode(java.lang.String nodeURL) throws NodeException
NodeException
- if the node cannot be createdpublic static Node createNode(java.lang.String url, boolean replacePreviousBinding, PolicyServer ps, java.lang.String vnname) throws NodeException
NodeException
- if the node cannot be createdpublic static Node getNode(java.lang.String nodeURL) throws NodeException
NodeException
- if the node cannot be foundpublic static void killNode(java.lang.String nodeURL) throws NodeException
nodeURL
-
NodeException
- if a problem occurs when killing the node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |