Class PingFailureAnalyzer

java.lang.Object
jenkins.slaves.PingFailureAnalyzer
All Implemented Interfaces:
ExtensionPoint

public abstract class PingFailureAnalyzer extends Object implements ExtensionPoint
Get notified when a channel triggered a ping failure, but before the channel is killed.

This provides the opportunity to perform diagnostic activities.

Since:
1.592
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • PingFailureAnalyzer

      public PingFailureAnalyzer()
  • Method Details

    • onPingFailure

      public abstract void onPingFailure(hudson.remoting.Channel c, Throwable cause) throws IOException
      Parameters:
      c - The channel that caused the ping failure. Because this channel is in a troubled state, do not attempt a remote call on this channel. Doing so would risk creating a hang.
      cause - Cause of the ping failure. Informational, and probably uninteresting to most callees.
      Throws:
      IOException
    • all

      public static ExtensionList<PingFailureAnalyzer> all()