TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.execution.client.core
Class NodeFactory

java.lang.Object
  extended by org.eclipse.tptp.platform.execution.client.core.NodeFactory

public class NodeFactory
extends java.lang.Object

A factory object for creating Nodes. Nodes can be specified by either name or InetAddress. Each Node is treated as a singleton and attempts to create a Node that already exists will return the same Node instance that already existed.


Constructor Summary
NodeFactory()
           
 
Method Summary
static INode createNode(java.net.InetAddress address)
          Create a Node for the suplied InetAddress.
static INode createNode(java.lang.String hostname)
          Create a Node for the suplied hostname.
static INode getLocalHost()
          Deprecated. - use getLocalHost(User user)
static INode getNode(java.net.InetAddress addr)
          Searches the Node list based upon the InetAddress.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory()
Method Detail

createNode

public static INode createNode(java.lang.String hostname)
                        throws java.net.UnknownHostException
Create a Node for the suplied hostname. Nodes are are intended to be singletons in this application so if the Node exists it will be returned.

Throws:
java.net.UnknownHostException

createNode

public static INode createNode(java.net.InetAddress address)
                        throws java.net.UnknownHostException
Create a Node for the suplied InetAddress. Nodes are are intended to be singletons in this application so if the Node exists it will be returned.

Throws:
java.net.UnknownHostException

getLocalHost

public static INode getLocalHost()
                          throws java.net.UnknownHostException
Deprecated. - use getLocalHost(User user)

Returns the node that represents the local host.

Throws:
java.net.UnknownHostException

getNode

public static INode getNode(java.net.InetAddress addr)
Searches the Node list based upon the InetAddress.

Returns:
the Node if it exists, null otherwise.

TPTP 4.6.0 Platform Project
Public API Specification