com.atlassian.bamboo.agent.elastic.tunnel
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
Fields inherited from class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker |
atLeastOneConnectionWasSuccessful, consecutiveFailures, tunnelName |
Methods inherited from class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker |
finish, onFailure, onStreamEnd, setTunnelName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerminateOnTimeoutTunnelStatusTracker
public TerminateOnTimeoutTunnelStatusTracker(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance,
int timeout,
TimeUnit timeUnit)
onAttempt
public void onAttempt()
- Specified by:
onAttempt
in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onAttempt
in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
onFailure
public void onFailure(@Nullable
Throwable throwable)
throws InterruptedException
- Specified by:
onFailure
in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onFailure
in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
- Throws:
InterruptedException
onSuccess
public void onSuccess()
- Specified by:
onSuccess
in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
- Overrides:
onSuccess
in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.