com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh
Class SshConnectionFactory

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnectionFactory

public abstract class SshConnectionFactory
extends Object

Factory class for SshConnections.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Method Summary
static SshConnection getConnection(String host, int port, Authentication authentication)
          Creates a SshConnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnection

public static SshConnection getConnection(String host,
                                          int port,
                                          Authentication authentication)
                                   throws IOException
Creates a SshConnection.

Parameters:
host - the host name
port - the port
authentication - the credentials
Returns:
a new connection.
Throws:
IOException - if so.
See Also:
SshConnection, SshConnectionImpl


Copyright © 2004-2012 Hudson. All Rights Reserved.