com.atlassian.bamboo.agent.elastic.tunnel
Class ElasticAgentTunnelManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.agent.elastic.tunnel.ElasticAgentTunnelManagerImpl
All Implemented Interfaces:
ElasticAgentTunnelManager

public class ElasticAgentTunnelManagerImpl
extends java.lang.Object
implements ElasticAgentTunnelManager


Constructor Summary
ElasticAgentTunnelManagerImpl(java.net.URL baseURL, javax.net.ssl.SSLContext sslContext, BootstrapManager bootstrapManager, ElasticAgentTunnelPorts ports)
           
 
Method Summary
protected  javax.net.SocketFactory getForwardingSocketFactory()
           
protected  javax.net.SocketFactory getTunnelSocketFactory()
           
 java.util.Collection<com.atlassian.tunnel.tunnel.client.Tunnel> startBambooTunnels(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int tunnelTimeoutMinutes)
          Starts TCP tunnels to an EC2 instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticAgentTunnelManagerImpl

public ElasticAgentTunnelManagerImpl(java.net.URL baseURL,
                                     javax.net.ssl.SSLContext sslContext,
                                     BootstrapManager bootstrapManager,
                                     ElasticAgentTunnelPorts ports)
                              throws java.security.NoSuchAlgorithmException,
                                     java.security.KeyManagementException,
                                     java.security.UnrecoverableKeyException,
                                     java.security.KeyStoreException
Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.KeyStoreException
Method Detail

startBambooTunnels

@NotNull
public java.util.Collection<com.atlassian.tunnel.tunnel.client.Tunnel> startBambooTunnels(@NotNull
                                                                                                  com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance,
                                                                                                  int tunnelTimeoutMinutes)
                                                                                   throws java.net.URISyntaxException
Description copied from interface: ElasticAgentTunnelManager
Starts TCP tunnels to an EC2 instance.

Specified by:
startBambooTunnels in interface ElasticAgentTunnelManager
Parameters:
ec2Instance - instance with tunnel server
tunnelTimeoutMinutes - time interval after we can assume that the tunnel cannot be initialised
Returns:
started tunnels
Throws:
java.net.URISyntaxException

getForwardingSocketFactory

protected javax.net.SocketFactory getForwardingSocketFactory()

getTunnelSocketFactory

protected javax.net.SocketFactory getTunnelSocketFactory()


Copyright © 2012 Atlassian. All Rights Reserved.