public final class AgentComputerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static hudson.remoting.VirtualChannel |
getChannelToMaster()
Obtains a
VirtualChannel that allows some computation to be performed on the master. |
@CheckForNull public static hudson.remoting.VirtualChannel getChannelToMaster()
VirtualChannel
that allows some computation to be performed on the master.
This method can be called from any thread on the master, 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.)Copyright © 2004–2021. All rights reserved.