agave-files/files-core/src/main/java/org/iplantc/service/io/dao/QueueTaskDao.java
/**
	 * Pushes a job into the quartz queue by adding a StagingTask record to the db. 
	 * The task will be pulled by the existing triggers and run.
	 * 
	 * @param file the file to transfer
	 * @param createdBy the user to whom the staging task belongs
	 * @throws SchedulerException 
	 */
Pushes a job into the quartz queue by adding a StagingTask record to the db.
The task will be pulled by the existing triggers and run.

@param file the file to transfer
@param createdBy the user to whom the staging task belongs
@throws SchedulerException
Pushes a job into the quartz queue by adding a StagingTask record to the db . The task will be pulled by the existing triggers and run . @param file the file to transfer @param createdBy the user to whom the staging task belongs @throws SchedulerException
public static void enqueueStagingTask(LogicalFile file, String createdBy) 
	throws SchedulerException 
	{
		try 
		{
			StagingTask task = new StagingTask(file, createdBy);
			QueueTaskDao.persist(task);
			LogicalFileDao.updateTransferStatus(file, StagingTaskStatus.STAGING_QUEUED, createdBy);
		} 
		catch (Exception e) 
		{
		    String msg = "Failure to enqueue staging task with logical file " + file.getName() + ".";
		    log.error(msg, e);
			file.setStatus(StagingTaskStatus.STAGING_FAILED.name());
			try {
				LogicalFileDao.persist(file);
			} catch (Exception e1) {
			    String msg2 = "Failure to save logical file " + file.getName() + " while enqueuing staging task.";
			    log.error(msg2, e1);
			}
			throw new SchedulerException(msg, e);
		}
	}
public static void enqueueStagingTask ( LogicalFile file , String createdBy ) throws SchedulerException { try { StagingTask task = new StagingTask ( file , createdBy ) ; QueueTaskDao . persist ( task ) ; LogicalFileDao . updateTransferStatus ( file , StagingTaskStatus . STAGING_QUEUED , createdBy ) ; } catch ( Exception e ) { String msg = "Failure to enqueue staging task with logical file " + file . getName ( ) + "." ; log . error ( msg , e ) ; file . setStatus ( StagingTaskStatus . STAGING_FAILED . name ( ) ) ; try { LogicalFileDao . persist ( file ) ; } catch ( Exception e1 ) { String msg2 = "Failure to save logical file " + file . getName ( ) + " while enqueuing staging task." ; log . error ( msg2 , e1 ) ; } throw new SchedulerException ( msg , e ) ; } }
Pushes a job into the quartz queue by adding a StagingTask record to the db.
Pushes a job into the quartz queue by adding a StagingTask record to the db .
//			TransferTask tt = FileTransferVerticle.getInstance().submit(task); //			return tt;