Package jenkins.agents
Class AgentComputerUtil
- java.lang.Object
-
- jenkins.agents.AgentComputerUtil
-
public final class AgentComputerUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static hudson.remoting.VirtualChannel
getChannelToController()
Obtains aVirtualChannel
that allows some computation to be performed on the controller.static hudson.remoting.VirtualChannel
getChannelToMaster()
Deprecated.Use {getChannelToController()
}.
-
-
-
Method Detail
-
getChannelToController
@CheckForNull public static hudson.remoting.VirtualChannel getChannelToController()
Obtains aVirtualChannel
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.Use {getChannelToController()
}.- Since:
- 2.235
-
-