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
-
-
Constructor Summary
Constructors Constructor Description TerminateOnTimeoutTunnelStatusTracker(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int timeout, TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAttempt()
void
onFailure(@Nullable Throwable throwable)
void
onSuccess()
-
-
-
Constructor Detail
-
TerminateOnTimeoutTunnelStatusTracker
public TerminateOnTimeoutTunnelStatusTracker(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int timeout, TimeUnit timeUnit)
-
-
Method Detail
-
onAttempt
public void onAttempt()
- Specified by:
onAttempt
in interfacecom.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onAttempt
in classcom.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
-
onFailure
public void onFailure(@Nullable @Nullable Throwable throwable) throws InterruptedException
- 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
-
-