Package hudson
Interface FilePath.FileCallable<T>
-
- All Superinterfaces:
org.jenkinsci.remoting.RoleSensitive,Serializable
- All Known Implementing Classes:
DiskSpaceMonitorDescriptor.GetUsableSpace,MasterToSlaveFileCallable,SlaveToMasterFileCallable,TemporarySpaceMonitor.GetTempSpace
- Enclosing class:
- FilePath
public static interface FilePath.FileCallable<T> extends Serializable, org.jenkinsci.remoting.RoleSensitive
Code that gets executed on the machine where theFilePathis local. Used to act onFilePath. Warning: implementations must be serializable, so prefer a static nested class to an inner class.Subtypes would likely want to extend from either
MasterToSlaveCallableorSlaveToMasterFileCallable.- See Also:
FilePath.act(FileCallable)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tinvoke(File f, hudson.remoting.VirtualChannel channel)Performs the computational task on the node where the data is located.
-
-
-
Method Detail
-
invoke
T invoke(File f, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Performs the computational task on the node where the data is located.All the exceptions are forwarded to the caller.
- Parameters:
f-Filethat represents the local file thatFilePathhas represented.channel- The "back pointer" of theChannelthat represents the communication with the node from where the code was sent.- Throws:
IOExceptionInterruptedException
-
-