TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.hyades.internal.execution.local.control
Interface Connection

All Known Implementing Classes:
ConnectionImpl, SecureConnectionImpl

public interface Connection


Method Summary
 void addAuthenticationListener(AuthenticationListener listener)
          Adds an AuthenticationListener to this connection.
 void addConnectionListener(ConnectionListener listener)
          Adds a ConnectionListener to this Connection instance.
 void connect(Node node, int port)
           
 void disconnect()
           
 Node getNode()
           
 int getPort()
           
 boolean isActive()
           
 void removeAuthenticationListener(AuthenticationListener listener)
          Removes an AuthenticationListener from this connection.
 void removeConnectionListener(ConnectionListener listener)
          Removes a ConnectionListener from this Connection instance.
 void sendMessage(ControlMessage msg, CommandHandler handler)
           
 

Method Detail

sendMessage

void sendMessage(ControlMessage msg,
                 CommandHandler handler)
                 throws java.io.IOException
Throws:
java.io.IOException

disconnect

void disconnect()

getNode

Node getNode()

isActive

boolean isActive()

getPort

int getPort()

addConnectionListener

void addConnectionListener(ConnectionListener listener)
Adds a ConnectionListener to this Connection instance.

See Also:
ConnectionListener

removeConnectionListener

void removeConnectionListener(ConnectionListener listener)
Removes a ConnectionListener from this Connection instance.

See Also:
ConnectionListener

addAuthenticationListener

void addAuthenticationListener(AuthenticationListener listener)
Adds an AuthenticationListener to this connection.

See Also:
AuthenticationListener

removeAuthenticationListener

void removeAuthenticationListener(AuthenticationListener listener)
Removes an AuthenticationListener from this connection.

See Also:
AuthenticationListener

connect

void connect(Node node,
             int port)
             throws java.io.IOException,
                    SecureConnectionRequiredException,
                    LoginFailedException,
                    UntrustedAgentControllerException
Throws:
java.io.IOException
SecureConnectionRequiredException
LoginFailedException
UntrustedAgentControllerException

TPTP 4.5.0 Platform Project
Internal API Specification