TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.local
Class NodeImpl

java.lang.Object
  extended by org.eclipse.hyades.execution.local.NodeImpl
All Implemented Interfaces:
INode, INodeExtended
Direct Known Subclasses:
HyadesTestNodeImpl

public class NodeImpl
extends java.lang.Object
implements INodeExtended

Node implementation for the execution framework, now supports the ability to connect to a connect given a connection specifier.


Field Summary
 org.eclipse.hyades.internal.execution.local.control.Node node
          The underlying node that retains the connection
 
Constructor Summary
NodeImpl(java.lang.String name)
          Constructs a node implementation given the specified name
 
Method Summary
 ISession connect(ConnectionSpecifier specifier)
          Connects to the node using this connection specifier
 ISession connect(java.lang.String daemonType, java.security.Principal principal)
          Open a session with the daemon.
 ISession connect(java.lang.String daemonType, java.security.Principal principal, int iterations)
           
 org.eclipse.hyades.internal.execution.local.control.Node connectUsingLegacyMethod(java.lang.String daemonType, java.security.Principal principal)
          Obtains and connects to node using the legacy method (does not support secure connections)
 IFileManager getFileManager()
          Retrieves the file manager associated with this node
 java.lang.String getName()
          Gets the name of the INode.
 org.eclipse.hyades.internal.execution.local.control.Node getUnderlyingNode()
          Returns the underlying node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

public org.eclipse.hyades.internal.execution.local.control.Node node
The underlying node that retains the connection

Constructor Detail

NodeImpl

public NodeImpl(java.lang.String name)
Constructs a node implementation given the specified name

Method Detail

connect

public ISession connect(ConnectionSpecifier specifier)
                 throws UnknownDaemonException,
                        DaemonConnectException,
                        java.net.UnknownHostException
Connects to the node using this connection specifier

Specified by:
connect in interface INodeExtended
Parameters:
specifier - the specifier used for connection purposes, uniquely identifies an agent controller instance, only the port is read currently, the host is specified using the node's name at construction time, the host for this node is maintained immutable
Returns:
the session to this agent controller instance
Throws:
UnknownDaemonException
DaemonConnectException
java.net.UnknownHostException

connect

public ISession connect(java.lang.String daemonType,
                        java.security.Principal principal)
                 throws UnknownDaemonException,
                        DaemonConnectException,
                        java.net.UnknownHostException
Description copied from interface: INode
Open a session with the daemon. The specifics of this method are currently unresolved. It is expected that we will add an IConnection interface that will probably replace this method. Whatever methods take the place of this method are expected to throw a number of exception types. RKD: We need to specialize Principal to handle logins automatically within the framework.

Specified by:
connect in interface INode
Parameters:
daemonType - UNRESOLVED - it's unclear if this is the right place for this extension point.
principal - A specialized Principal object for authentication and login.
Returns:
an ISession on this INode
Throws:
UnknownDaemonException
DaemonConnectException
java.net.UnknownHostException

connect

public ISession connect(java.lang.String daemonType,
                        java.security.Principal principal,
                        int iterations)
                 throws UnknownDaemonException,
                        DaemonConnectException,
                        java.net.UnknownHostException
Throws:
UnknownDaemonException
DaemonConnectException
java.net.UnknownHostException

connectUsingLegacyMethod

public org.eclipse.hyades.internal.execution.local.control.Node connectUsingLegacyMethod(java.lang.String daemonType,
                                                                                         java.security.Principal principal)
                                                                                  throws UnknownDaemonException,
                                                                                         DaemonConnectException,
                                                                                         java.net.UnknownHostException
Obtains and connects to node using the legacy method (does not support secure connections)

Parameters:
daemonType - the port to connect to
principal - the security principal to use
Returns:
the node connected to
Throws:
java.lang.Exception
UnknownDaemonException
DaemonConnectException
java.net.UnknownHostException

getFileManager

public IFileManager getFileManager()
Retrieves the file manager associated with this node

Returns:
file manager is returned and is potentially a file manager extended instance

getName

public java.lang.String getName()
Description copied from interface: INode
Gets the name of the INode.

Specified by:
getName in interface INode
Returns:
the name

getUnderlyingNode

public org.eclipse.hyades.internal.execution.local.control.Node getUnderlyingNode()
Returns the underlying node. This method is for internal use only.

Returns:
the underlying node object

TPTP 4.6.0 Platform Project
Public API Specification