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

    Constructors
    Constructor
    Description
    TerminateOnTimeoutTunnelStatusTracker(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance, int timeout, TimeUnit timeUnit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    onFailure(@Nullable Throwable throwable)
     
    void
     

    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
  • 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 interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
      Overrides:
      onAttempt in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
    • onFailure

      public void onFailure(@Nullable @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