Class AgentComputerUtil

java.lang.Object
jenkins.agents.AgentComputerUtil

public final class AgentComputerUtil extends Object
  • Method Details

    • getChannelToController

      @CheckForNull public static hudson.remoting.VirtualChannel getChannelToController()
      Obtains a VirtualChannel that allows some computation to be performed on the controller. This method can be called from any thread on the controller, or from agent (more precisely, it only works from the remoting request-handling thread in agents, which means if you've started separate thread on agents, that'll fail.)
      Returns:
      null if the calling thread doesn't have any trace of where its controller is.
      Since:
      2.307
    • getChannelToMaster

      @Deprecated @CheckForNull public static hudson.remoting.VirtualChannel getChannelToMaster()
      Deprecated.
      Since:
      2.235