V
- the return type; note that this must either be defined in your plugin or included in the stock JEP-200 whitelistpublic abstract class MasterToSlaveCallable<V,T extends Throwable> extends Object implements hudson.remoting.Callable<V,T>
Callable
meant to be run on agent.
Note that the logic within Callable.call()
should use API of a minimum supported Remoting version.
See RemotingVersionInfo.getMinimumSupportedVersion()
.Constructor and Description |
---|
MasterToSlaveCallable() |
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker) |
hudson.remoting.Channel |
getChannelOrFail() |
hudson.remoting.Channel |
getOpenChannelOrFail() |
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
SecurityException
public hudson.remoting.Channel getChannelOrFail() throws hudson.remoting.ChannelClosedException
Copyright © 2004–2021. All rights reserved.