org.gcube.application.enm.service.plugins.comps
Class COMPsExecutionResource

java.lang.Object
  extended by org.gcube.application.enm.service.ExecutionResource
      extended by org.gcube.application.enm.service.plugins.comps.COMPsExecutionResource

public class COMPsExecutionResource
extends ExecutionResource

Extends the ExecutionResource for the COMPSs provider.

Author:
Erik Torres

Field Summary
 
Fields inherited from class org.gcube.application.enm.service.ExecutionResource
isClient, logger
 
Constructor Summary
COMPsExecutionResource()
           
 
Method Summary
 void cancelExperiment(UUID uuid, String jobId)
          Cancels the job at the execution resource.
 void cleanExperimentOuput(UUID uuid, String jobId)
          Clean up the output of an experiment from the remote execution site.
 String getLogAsFile(org.gcube.application.enm.common.xml.logs.LogType log, org.gcube.contentmanagement.blobstorage.service.IClient storageClient, String credentials)
          Retrieves the logs of the job from the execution resource storying as a file with the storage service.
 org.gcube.application.enm.common.xml.logs.ExperimentLogs getLogs(UUID uuid, String jobId)
          Retrieves the execution logs of the job from the execution resource.
 String getResultAsFile(org.gcube.application.enm.common.xml.results.ResultType result, org.gcube.contentmanagement.blobstorage.service.IClient storageClient, String credentials)
          Retrieves the results of the job from the execution resource storying as a file with the storage service.
 org.gcube.application.enm.common.xml.results.ExperimentResults getResults(UUID uuid, String jobId)
          Retrieves the results of the job from the execution resource.
 org.gcube.application.enm.common.xml.status.ExperimentStatus getStatus(UUID uuid, String jobId)
          Retrieves the status of the job from the execution resource.
 String sumbitExperiment(UUID uuid, org.gcube.application.enm.common.xml.request.ExperimentRequest params)
          Submits and experiment to the execution resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COMPsExecutionResource

public COMPsExecutionResource()
Method Detail

sumbitExperiment

public final String sumbitExperiment(UUID uuid,
                                     org.gcube.application.enm.common.xml.request.ExperimentRequest params)
Description copied from class: ExecutionResource
Submits and experiment to the execution resource.

Specified by:
sumbitExperiment in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
params - The parameters of the experiment to submit.
Returns:
The local identifier of the job in the resource.

getStatus

public final org.gcube.application.enm.common.xml.status.ExperimentStatus getStatus(UUID uuid,
                                                                                    String jobId)
Description copied from class: ExecutionResource
Retrieves the status of the job from the execution resource.

Specified by:
getStatus in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
jobId - The local identifier of the job to monitor in the resource.
Returns:
The status of the job.

getResults

public final org.gcube.application.enm.common.xml.results.ExperimentResults getResults(UUID uuid,
                                                                                       String jobId)
Description copied from class: ExecutionResource
Retrieves the results of the job from the execution resource.

Specified by:
getResults in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
jobId - The local identifier of the job in the resource.
Returns:
The results of the job from the execution resource.

getLogs

public final org.gcube.application.enm.common.xml.logs.ExperimentLogs getLogs(UUID uuid,
                                                                              String jobId)
Description copied from class: ExecutionResource
Retrieves the execution logs of the job from the execution resource.

Specified by:
getLogs in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
jobId - The local identifier of the job in the resource.
Returns:
The execution logs of the job from the execution resource.

cancelExperiment

public void cancelExperiment(UUID uuid,
                             String jobId)
Description copied from class: ExecutionResource
Cancels the job at the execution resource.

Specified by:
cancelExperiment in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
jobId - The local identifier of the job to cancel in the resource.

getResultAsFile

public String getResultAsFile(org.gcube.application.enm.common.xml.results.ResultType result,
                              org.gcube.contentmanagement.blobstorage.service.IClient storageClient,
                              String credentials)
Description copied from class: ExecutionResource
Retrieves the results of the job from the execution resource storying as a file with the storage service.

Specified by:
getResultAsFile in class ExecutionResource
Parameters:
result - The result to store as file.
storageClient - The storage service client.
credentials - User credentials.
Returns:
The identifier of the file created in the storage service.

getLogAsFile

public String getLogAsFile(org.gcube.application.enm.common.xml.logs.LogType log,
                           org.gcube.contentmanagement.blobstorage.service.IClient storageClient,
                           String credentials)
Description copied from class: ExecutionResource
Retrieves the logs of the job from the execution resource storying as a file with the storage service.

Specified by:
getLogAsFile in class ExecutionResource
Parameters:
log - The log to store as file.
storageClient - The storage service client.
credentials - User credentials.
Returns:
The identifier of the file created in the storage service.

cleanExperimentOuput

public void cleanExperimentOuput(UUID uuid,
                                 String jobId)
Description copied from class: ExecutionResource
Clean up the output of an experiment from the remote execution site.

Specified by:
cleanExperimentOuput in class ExecutionResource
Parameters:
uuid - The unequally unique identifier of the experiment.
jobId - The local identifier of the job in the resource.


Copyright © 2012. All Rights Reserved.