Search in sources :

Example 1 with DataStreamingTask

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);
    }
}
Also used : DataStreamingTask(org.apache.airavata.gfac.impl.task.DataStreamingTask) GFacException(org.apache.airavata.gfac.core.GFacException) TaskStatus(org.apache.airavata.model.status.TaskStatus) URISyntaxException(java.net.URISyntaxException) CredentialStoreException(org.apache.airavata.credential.store.store.CredentialStoreException) TaskException(org.apache.airavata.gfac.core.task.TaskException) AppCatalogException(org.apache.airavata.registry.cpi.AppCatalogException) RegistryException(org.apache.airavata.registry.cpi.RegistryException) AiravataException(org.apache.airavata.common.exception.AiravataException) GFacException(org.apache.airavata.gfac.core.GFacException) TException(org.apache.thrift.TException)

Aggregations

URISyntaxException (java.net.URISyntaxException)1 AiravataException (org.apache.airavata.common.exception.AiravataException)1 CredentialStoreException (org.apache.airavata.credential.store.store.CredentialStoreException)1 GFacException (org.apache.airavata.gfac.core.GFacException)1 TaskException (org.apache.airavata.gfac.core.task.TaskException)1 DataStreamingTask (org.apache.airavata.gfac.impl.task.DataStreamingTask)1 TaskStatus (org.apache.airavata.model.status.TaskStatus)1 AppCatalogException (org.apache.airavata.registry.cpi.AppCatalogException)1 RegistryException (org.apache.airavata.registry.cpi.RegistryException)1 TException (org.apache.thrift.TException)1