Class ElasticAgentTunnelManagerImpl
java.lang.Object
com.atlassian.bamboo.agent.elastic.tunnel.ElasticAgentTunnelManagerImpl
- All Implemented Interfaces:
ElasticAgentTunnelManager
-
Constructor Summary
ConstructorDescriptionElasticAgentTunnelManagerImpl
(URL baseURL, Supplier<SocketFactory> socketFactory, BambooBrokerService brokerService, ElasticAgentTunnelPorts ports) -
Method Summary
Modifier and TypeMethodDescription@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 Details
-
ElasticAgentTunnelManagerImpl
public ElasticAgentTunnelManagerImpl(URL baseURL, Supplier<SocketFactory> socketFactory, BambooBrokerService brokerService, ElasticAgentTunnelPorts ports)
-
-
Method Details
-
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
-