org.gcube.execution.workflowengine.service
Class ServiceUtils

java.lang.Object
  extended by org.gcube.execution.workflowengine.service.ServiceUtils

public class ServiceUtils
extends java.lang.Object


Constructor Summary
ServiceUtils()
           
 
Method Summary
static void EnrichHadoopResource(AttachedHadoopResource att, WorkflowEngineService.ResourceAccessType rat, AccessInfo ai, java.lang.String reference, byte[] bytePayload, java.lang.String stringPayload)
           
static boolean EvaluateResult(ExecutionObserver obs)
           
static AdaptorCondorResources GetAdaptorCONDORResources(CONDORParams params)
           
static AdaptorGridResources GetAdaptorGRIDResources(GRIDParams params)
           
static AdaptorHadoopResources GetAdaptorHADOOPResources(HADOOPParams params)
           
static AdaptorJDLResources GetAdaptorJDLResources(JDLParams params)
           
static java.lang.String GetExecutionErrorMessage(ExecutionObserver obs)
           
static java.util.List<ExecutionEvent> GetExecutionEvents(ExecutionObserver obs)
           
static JobOutput GetJobOutput(ExecutionObserver obs, IOutputResource res)
           
static java.lang.String GetStoredFileID(java.lang.String varID, ExecutionObserver obs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceUtils

public ServiceUtils()
Method Detail

GetJobOutput

public static JobOutput GetJobOutput(ExecutionObserver obs,
                                     IOutputResource res)
                              throws ExecutionException,
                                     WorkflowException
Throws:
ExecutionException
WorkflowException

GetExecutionErrorMessage

public static java.lang.String GetExecutionErrorMessage(ExecutionObserver obs)
                                                 throws java.io.IOException
Throws:
java.io.IOException

GetExecutionEvents

public static java.util.List<ExecutionEvent> GetExecutionEvents(ExecutionObserver obs)

GetStoredFileID

public static java.lang.String GetStoredFileID(java.lang.String varID,
                                               ExecutionObserver obs)
                                        throws ExecutionValidationException
Throws:
ExecutionValidationException

EvaluateResult

public static boolean EvaluateResult(ExecutionObserver obs)

EnrichHadoopResource

public static void EnrichHadoopResource(AttachedHadoopResource att,
                                        WorkflowEngineService.ResourceAccessType rat,
                                        AccessInfo ai,
                                        java.lang.String reference,
                                        byte[] bytePayload,
                                        java.lang.String stringPayload)
                                 throws WorkflowEnvironmentException,
                                        WorkflowValidationException
Throws:
WorkflowEnvironmentException
WorkflowValidationException

GetAdaptorHADOOPResources

public static AdaptorHadoopResources GetAdaptorHADOOPResources(HADOOPParams params)
                                                        throws WorkflowValidationException,
                                                               WorkflowEnvironmentException
Throws:
WorkflowValidationException
WorkflowEnvironmentException

GetAdaptorGRIDResources

public static AdaptorGridResources GetAdaptorGRIDResources(GRIDParams params)
                                                    throws WorkflowValidationException,
                                                           WorkflowEnvironmentException
Throws:
WorkflowValidationException
WorkflowEnvironmentException

GetAdaptorCONDORResources

public static AdaptorCondorResources GetAdaptorCONDORResources(CONDORParams params)
                                                        throws WorkflowValidationException,
                                                               WorkflowEnvironmentException
Throws:
WorkflowValidationException
WorkflowEnvironmentException

GetAdaptorJDLResources

public static AdaptorJDLResources GetAdaptorJDLResources(JDLParams params)
                                                  throws WorkflowValidationException,
                                                         WorkflowEnvironmentException
Throws:
WorkflowValidationException
WorkflowEnvironmentException