public static interface FilePath.FileCallable<T> extends Serializable, org.jenkinsci.remoting.RoleSensitive
FilePath is local.
Used to act on FilePath.
Warning: implementations must be serializable, so prefer a static nested class to an inner class.
Subtypes would likely want to extend from either MasterToSlaveCallable
or SlaveToMasterFileCallable.
FilePath.act(FileCallable)| Modifier and Type | Method and Description |
|---|---|
T |
invoke(File f,
hudson.remoting.VirtualChannel channel)
Performs the computational task on the node where the data is located.
|
T invoke(File f, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
All the exceptions are forwarded to the caller.
f - File that represents the local file that FilePath has represented.channel - The "back pointer" of the Channel that represents the communication
with the node from where the code was sent.IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.