Class TerminateOnTimeoutTunnelStatusTracker
java.lang.Object
com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
com.atlassian.bamboo.agent.elastic.tunnel.TerminateOnTimeoutTunnelStatusTracker
- All Implemented Interfaces:
com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
public class TerminateOnTimeoutTunnelStatusTracker
extends com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
-
Field Summary
Fields inherited from class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
atLeastOneConnectionWasSuccessful, consecutiveFailures, tunnelName
-
Constructor Summary
ConstructorDescriptionTerminateOnTimeoutTunnelStatusTracker
(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int timeout, TimeUnit timeUnit) -
Method Summary
Methods inherited from class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
finish, onFailure, onStreamEnd, setTunnelName
-
Constructor Details
-
TerminateOnTimeoutTunnelStatusTracker
public TerminateOnTimeoutTunnelStatusTracker(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int timeout, TimeUnit timeUnit)
-
-
Method Details
-
onAttempt
public void onAttempt()- Specified by:
onAttempt
in interfacecom.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onAttempt
in classcom.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
-
onFailure
- Specified by:
onFailure
in interfacecom.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onFailure
in classcom.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
- Throws:
InterruptedException
-
onSuccess
public void onSuccess()- Specified by:
onSuccess
in interfacecom.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onSuccess
in classcom.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
-