Class ElasticAgentTunnelManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.tunnel.ElasticAgentTunnelManagerImpl
-
- All Implemented Interfaces:
ElasticAgentTunnelManager
public class ElasticAgentTunnelManagerImpl extends Object implements ElasticAgentTunnelManager
-
-
Constructor Summary
Constructors Constructor Description ElasticAgentTunnelManagerImpl(URL baseURL, Supplier<SocketFactory> socketFactory, BambooBrokerService brokerService, ElasticAgentTunnelPorts ports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<com.atlassian.tunnel.tunnel.client.Tunnel>
startBambooTunnels(@NotNull com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int tunnelTimeoutMinutes)
Starts TCP tunnels to an EC2 instance.
-
-
-
Constructor Detail
-
ElasticAgentTunnelManagerImpl
public ElasticAgentTunnelManagerImpl(URL baseURL, Supplier<SocketFactory> socketFactory, BambooBrokerService brokerService, ElasticAgentTunnelPorts ports)
-
-
Method Detail
-
startBambooTunnels
@NotNull public @NotNull Collection<com.atlassian.tunnel.tunnel.client.Tunnel> startBambooTunnels(@NotNull @NotNull com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int tunnelTimeoutMinutes)
Description copied from interface:ElasticAgentTunnelManager
Starts TCP tunnels to an EC2 instance.- Specified by:
startBambooTunnels
in interfaceElasticAgentTunnelManager
- Parameters:
ec2Instance
- instance with tunnel servertunnelTimeoutMinutes
- time interval after we can assume that the tunnel cannot be initialised- Returns:
- started tunnels
-
-