Class MasterToSlaveCallable<V,T extends Throwable>

java.lang.Object
jenkins.security.MasterToSlaveCallable<V,T>
Type Parameters:
V - the return type; note that this must either be defined in your plugin or included in the stock JEP-200 whitelist
All Implemented Interfaces:
hudson.remoting.Callable<V,T>, Serializable, org.jenkinsci.remoting.RoleSensitive
Direct Known Subclasses:
ChannelPinger.SetUpRemotePing

public abstract class MasterToSlaveCallable<V,T extends Throwable> extends Object implements hudson.remoting.Callable<V,T>
Convenient 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().
Since:
1.587 / 1.580.1
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • MasterToSlaveCallable

      public MasterToSlaveCallable()
  • Method Details

    • checkRoles

      public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
      Specified by:
      checkRoles in interface org.jenkinsci.remoting.RoleSensitive
      Throws:
      SecurityException