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

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

public class COMPSsClient
extends Object

COMPSs client for the execution of openModeller experiments.

Author:
Roger Rafanell

Constructor Summary
COMPSsClient(String endpoint)
          Instantiates a new OModeller client.
 
Method Summary
 int getCompletness(com.bsc.venusbes.venusclient.credentials.BESCredential besCred, String[] jobIds)
           
 List<com.bsc.venusbes.venusclient.types.JobProgress> getJobsProgress(com.bsc.venusbes.venusclient.credentials.BESCredential besCred, String[] jobIds)
          Retrieves the progress of concrete jobs.
 List<com.bsc.venusbes.venusclient.types.JobStatus> OModellerStatus(com.bsc.venusbes.venusclient.credentials.BESCredential besCred, String[] jobIds)
          Retrieves the status of a list of submitted jobs.
 String submitModel(com.bsc.venusbes.venusclient.credentials.BESCredential besCred, com.bsc.venusbes.venusclient.credentials.StorageCredential cred, Integer wallClockTime, String VMImage, Double diskSize, Integer cores, Double memory, Integer minOfVMs, Integer maxOfVMs, String jobName, String appLocation, String logsDir, String requests, String testPoints, String outputs)
          Submit a OModeller Job to the COMPSs enactment service.
 List<String> terminateOModeller(com.bsc.venusbes.venusclient.credentials.BESCredential besCred, String[] jobIds)
          Terminate a list of submitted jobs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COMPSsClient

public COMPSsClient(String endpoint)
Instantiates a new OModeller client.

Parameters:
endpoint - The endpoint of the COMPSs enactment service.
tempDir - the temp dir
Method Detail

submitModel

public String submitModel(com.bsc.venusbes.venusclient.credentials.BESCredential besCred,
                          com.bsc.venusbes.venusclient.credentials.StorageCredential cred,
                          Integer wallClockTime,
                          String VMImage,
                          Double diskSize,
                          Integer cores,
                          Double memory,
                          Integer minOfVMs,
                          Integer maxOfVMs,
                          String jobName,
                          String appLocation,
                          String logsDir,
                          String requests,
                          String testPoints,
                          String outputs)
Submit a OModeller Job to the COMPSs enactment service.

Parameters:
besCred - the BES credential.
cred - the FTP Storage credential.
appLocation - the CDMI URI of the application.
diskSize - Set the size of the needed disk size in GB.
minOfVMs - the minimum number of VMs allowed in the execution.
maxOfVMs - the maximum number of VMs allowed in the execution.
inputSequence - Path of the sequence file in the storage (relative to the user home).
dataBase - Path of the database file in the storage (relative to the user home).
numFragments - Number of sequence fragments.
outputFile - Path of the OModeller output in the storage (relative to the user home).
commandArgs - Command line arguments for blastall binary.
Returns:
A string containing the JobID of the execution.

OModellerStatus

public List<com.bsc.venusbes.venusclient.types.JobStatus> OModellerStatus(com.bsc.venusbes.venusclient.credentials.BESCredential besCred,
                                                                          String[] jobIds)
Retrieves the status of a list of submitted jobs.

Parameters:
besCred - the BES credential.
jobIds - Array of job IDs. One job is supported in this version.
Returns:
Array of ActivityStatus containing the status of the job.

getJobsProgress

public List<com.bsc.venusbes.venusclient.types.JobProgress> getJobsProgress(com.bsc.venusbes.venusclient.credentials.BESCredential besCred,
                                                                            String[] jobIds)
Retrieves the progress of concrete jobs.

Parameters:
besCred - the BES credential.
jobIds - The IDs of the retrieved jobs.
Returns:
List of JobProgress objects of each job.

terminateOModeller

public List<String> terminateOModeller(com.bsc.venusbes.venusclient.credentials.BESCredential besCred,
                                       String[] jobIds)
Terminate a list of submitted jobs.

Parameters:
besCred - the BES credential.
jobIds - Array of job IDs

getCompletness

public int getCompletness(com.bsc.venusbes.venusclient.credentials.BESCredential besCred,
                          String[] jobIds)


Copyright © 2012. All Rights Reserved.