Package jenkins.agents
Class AgentComputerUtil
java.lang.Object
jenkins.agents.AgentComputerUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic hudson.remoting.VirtualChannelObtains aVirtualChannelthat allows some computation to be performed on the controller.static hudson.remoting.VirtualChannelDeprecated.
-
Method Details
-
getChannelToController
@CheckForNull public static hudson.remoting.VirtualChannel getChannelToController()Obtains aVirtualChannelthat 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.Use {getChannelToController()}.- Since:
- 2.235
-
getChannelToController()}.