agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/util/DataLocator.java
/**
	 * Returns the {@link RemoteSystem} capable of accessing the job output data.
     * Depending on the job status, the returned system may change over time.
     *
	 * @return
	 * @throws RemoteDataException
	 * @throws SystemUnavailableException
	 * @throws JobException 
	 */
Returns the  RemoteSystem capable of accessing the job output data.
Depending on the job status, the returned system may change over time.


Returns the RemoteSystem capable of accessing the job output data . Depending on the job status the returned system may change over time .
public RemoteSystem findOutputSystemForJobData() throws RemoteDataException, SystemUnavailableException, JobException
	{
		if (job.isArchiveOutput()) {
			if (getJobManager().isJobDataFullyArchived(job)) {
				return job.getArchiveSystem();
			}
			else {
				return getJobManager().getJobExecutionSystem(job);
			}
		}
		else {
			return getJobManager().getJobExecutionSystem(job);
		}
	}
public RemoteSystem findOutputSystemForJobData ( ) throws RemoteDataException , SystemUnavailableException , JobException { if ( job . isArchiveOutput ( ) ) { if ( getJobManager ( ) . isJobDataFullyArchived ( job ) ) { return job . getArchiveSystem ( ) ; } else { return getJobManager ( ) . getJobExecutionSystem ( job ) ; } } else { return getJobManager ( ) . getJobExecutionSystem ( job ) ; } }
Returns the {@link RemoteSystem} capable of accessing the job output data.
Returns the { @link RemoteSystem } capable of accessing the job output data .
// if the job was archived, we need to figure out where the data might be // fully archived jobs should refer to the archive system. // otherwise partially archived jobs should default to the execution system // since that's where the data would be // otherwise, we go to the execution system since it's the only place // the data could be.