use of org.apache.airavata.gfac.impl.task.DataStreamingTask in project airavata by apache.
the class GFacEngineImpl method executeDataStreaming.
private void executeDataStreaming(TaskContext taskContext, boolean recovery) throws GFacException {
TaskStatus taskStatus = new TaskStatus(TaskState.EXECUTING);
taskStatus.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime());
taskContext.setTaskStatus(taskStatus);
GFacUtils.saveAndPublishTaskStatus(taskContext);
try {
DataStreamingTask dataStreamingTask = new DataStreamingTask();
taskStatus = executeTask(taskContext, dataStreamingTask, recovery);
taskStatus.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime());
taskContext.setTaskStatus(taskStatus);
GFacUtils.saveAndPublishTaskStatus(taskContext);
} catch (Exception e) {
throw new GFacException(e);
}
}
Aggregations