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 Details

    • SaveResourceAction

      public SaveResourceAction(List<String> tmpDirs, String name, byte[] definition)
      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:
      run in interface PrivilegedAction<org.jppf.location.Location<?>>
    • getException

      public Exception getException()
      Get the resulting exception.
      Returns:
      an Exception or null if no exception was raised.