agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/AbstractJobLauncher.java
/**
     * Creates the remote job work directory if not already present
     * @param executionSystem the system on which the job will run
     * @param jobExecutionSystemRemoteDataClient the client used to create the directory
     * @param remoteJobDirectoryPath path to the job directory to create
     * @throws JobException when unable to create the directory or connect to the system
     */
Creates the remote job work directory if not already present
@param executionSystem the system on which the job will run
@param jobExecutionSystemRemoteDataClient the client used to create the directory
@param remoteJobDirectoryPath path to the job directory to create
@throws JobException when unable to create the directory or connect to the system
Creates the remote job work directory if not already present @param executionSystem the system on which the job will run @param jobExecutionSystemRemoteDataClient the client used to create the directory @param remoteJobDirectoryPath path to the job directory to create @throws JobException when unable to create the directory or connect to the system
protected void createJobRemoteWorkPath(ExecutionSystem executionSystem, RemoteDataClient jobExecutionSystemRemoteDataClient, String remoteJobDirectoryPath) throws JobException {
        try {
            jobExecutionSystemRemoteDataClient.mkdirs(remoteJobDirectoryPath, getJob().getOwner());
        } catch (RemoteDataException e) {
            throw new JobException("Unable to create the remote job directory, " +
                    remoteJobDirectoryPath + ", on " + executionSystem.getSystemId() +
                    " for job " + getJob().getUuid() + ". Response from the server was: " + e.getMessage(), e);
        } catch (IOException e) {
            throw new JobException("Failed to connect to " + executionSystem.getSystemId() +
                    " to create the remote job directory for job " + getJob().getUuid() +
                    ". Response from server was: " + e.getMessage(), e);
        }
    }
protected void createJobRemoteWorkPath ( ExecutionSystem executionSystem , RemoteDataClient jobExecutionSystemRemoteDataClient , String remoteJobDirectoryPath ) throws JobException { try { jobExecutionSystemRemoteDataClient . mkdirs ( remoteJobDirectoryPath , getJob ( ) . getOwner ( ) ) ; } catch ( RemoteDataException e ) { throw new JobException ( "Unable to create the remote job directory, " + remoteJobDirectoryPath + ", on " + executionSystem . getSystemId ( ) + " for job " + getJob ( ) . getUuid ( ) + ". Response from the server was: " + e . getMessage ( ) , e ) ; } catch ( IOException e ) { throw new JobException ( "Failed to connect to " + executionSystem . getSystemId ( ) + " to create the remote job directory for job " + getJob ( ) . getUuid ( ) + ". Response from server was: " + e . getMessage ( ) , e ) ; } }
Creates the remote job work directory if not already present
 @param executionSystem the system on which the job will run
 @param jobExecutionSystemRemoteDataClient the client used to create the directory
 @param remoteJobDirectoryPath path to the job directory to create
 @throws JobException when unable to create the directory or connect to the system
Creates the remote job work directory if not already present @param executionSystem the system on which the job will run @param jobExecutionSystemRemoteDataClient the client used to create the directory @param remoteJobDirectoryPath path to the job directory to create @throws JobException when unable to create the directory or connect to the system