Package org.jppf.classloader.resource
Class SaveResourceAction
java.lang.Object
org.jppf.classloader.resource.SaveResourceAction
- All Implemented Interfaces:
PrivilegedAction<org.jppf.location.Location<?>>
public class SaveResourceAction
extends Object
implements PrivilegedAction<org.jppf.location.Location<?>>
Privileged action wrapper for saving a resource definition to a temporary file.
-
Constructor Summary
ConstructorsConstructorDescriptionSaveResourceAction(List<String> tmpDirs, String name, byte[] definition) Initialize this action with the specified resource definition. -
Method Summary
Modifier and TypeMethodDescriptionGet the resulting exception.org.jppf.location.Location<?>run()
-
Constructor Details
-
SaveResourceAction
Initialize this action with the specified resource definition.- Parameters:
tmpDirs- the name of the temp folder in which to save the file.name- the original name of the resource to find.definition- the resource definition to save.
-
-
Method Details
-
run
public org.jppf.location.Location<?> run()- Specified by:
runin interfacePrivilegedAction<org.jppf.location.Location<?>>
-
getException
Get the resulting exception.- Returns:
- an
Exceptionor null if no exception was raised.
-