Class SClient4WPS
- java.lang.Object
-
- org.gcube.data.analysis.dataminermanagercl.server.dmservice.SClient
-
- org.gcube.data.analysis.dataminermanagercl.server.dmservice.SClient4WPS
-
- All Implemented Interfaces:
Serializable
public class SClient4WPS extends SClient
Client 4 WPS Service- Author:
- Giancarlo Panichi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SClient4WPS(ServiceCredentials serviceCredentials)SClient4WPS(ServiceCredentials serviceCredentials, String serviceAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcancelComputation(ComputationId computationId)Cancel a computationComputationDatagetComputationDataByComputationProperties(Map<String,String> computationProperties)Get Computation Data by computation propertiesComputationStatusgetComputationStatus(ComputationId computationId)Get Computation StatusList<Parameter>getInputParameters(Operator operator)Get input paramters of the operatorOperatorgetOperatorById(String id)Retrieve the operator by idOperatorgetOperatorById(String id, boolean refresh)List<OperatorsClassification>getOperatorsClassifications()Retrieve the list of operatorsList<OperatorsClassification>getOperatorsClassifications(boolean refresh)Retrieve the list of operators and refresh them if requiredOutputDatagetOutputDataByComputationId(ComputationId computationId)Get Output of computationList<Parameter>getOutputParameters(Operator operator)Get output paramters of the operatorServiceInfogetServiceInfo()Retrieve service infoComputationIdresubmitComputation(Map<String,String> computationProperties)Resubmit a computation only by computation propertiesComputationIdstartComputation(Operator operator)Start ComputationStringtoString()
-
-
-
Constructor Detail
-
SClient4WPS
public SClient4WPS(ServiceCredentials serviceCredentials) throws ServiceException
- Parameters:
serviceCredentials- sevice credentials- Throws:
ServiceException- ServiceException
-
SClient4WPS
public SClient4WPS(ServiceCredentials serviceCredentials, String serviceAddress) throws ServiceException
- Parameters:
serviceCredentials- sevice credentialsserviceAddress- valid url for example: http://dataminer1-devnext.d4science.org/wps/- Throws:
ServiceException- ServiceException
-
-
Method Detail
-
getServiceInfo
public ServiceInfo getServiceInfo() throws ServiceException
Description copied from class:SClientRetrieve service info- Specified by:
getServiceInfoin classSClient- Returns:
- service info
- Throws:
ServiceException
-
getOperatorById
public Operator getOperatorById(String id) throws Exception
Description copied from class:SClientRetrieve the operator by id- Specified by:
getOperatorByIdin classSClient- Parameters:
id- operator id- Returns:
- operator
- Throws:
Exception- exception
-
getOperatorById
public Operator getOperatorById(String id, boolean refresh) throws Exception
- Specified by:
getOperatorByIdin classSClient- Parameters:
id- operator idrefresh- if true refresh the operators in cache- Returns:
- operator
- Throws:
Exception- exception
-
getOperatorsClassifications
public List<OperatorsClassification> getOperatorsClassifications() throws ServiceException
Description copied from class:SClientRetrieve the list of operators- Specified by:
getOperatorsClassificationsin classSClient- Returns:
- list of operators classification
- Throws:
ServiceException
-
getOperatorsClassifications
public List<OperatorsClassification> getOperatorsClassifications(boolean refresh) throws ServiceException
Description copied from class:SClientRetrieve the list of operators and refresh them if required- Specified by:
getOperatorsClassificationsin classSClient- Parameters:
refresh- refresh operators in cache- Returns:
- list of operators classification
- Throws:
ServiceException
-
getInputParameters
public List<Parameter> getInputParameters(Operator operator) throws ServiceException
Description copied from class:SClientGet input paramters of the operator- Specified by:
getInputParametersin classSClient- Parameters:
operator- operator- Returns:
- list of parameter
- Throws:
ServiceException
-
getOutputParameters
public List<Parameter> getOutputParameters(Operator operator) throws Exception
Description copied from class:SClientGet output paramters of the operator- Specified by:
getOutputParametersin classSClient- Parameters:
operator- operator- Returns:
- list of parameter
- Throws:
Exception- exception
-
startComputation
public ComputationId startComputation(Operator operator) throws ServiceException
Description copied from class:SClientStart Computation- Specified by:
startComputationin classSClient- Parameters:
operator- operator- Returns:
- computation id
- Throws:
ServiceException
-
getComputationStatus
public ComputationStatus getComputationStatus(ComputationId computationId) throws ServiceException
Description copied from class:SClientGet Computation Status- Specified by:
getComputationStatusin classSClient- Parameters:
computationId- computation Id- Returns:
- computation status
- Throws:
ServiceException
-
getOutputDataByComputationId
public OutputData getOutputDataByComputationId(ComputationId computationId) throws ServiceException
Description copied from class:SClientGet Output of computation- Specified by:
getOutputDataByComputationIdin classSClient- Parameters:
computationId- computation id- Returns:
- output data
- Throws:
ServiceException
-
cancelComputation
public String cancelComputation(ComputationId computationId) throws ServiceException
Description copied from class:SClientCancel a computation- Specified by:
cancelComputationin classSClient- Parameters:
computationId- computation Id- Returns:
- cancel
- Throws:
ServiceException
-
resubmitComputation
public ComputationId resubmitComputation(Map<String,String> computationProperties) throws ServiceException
Description copied from class:SClientResubmit a computation only by computation properties- Specified by:
resubmitComputationin classSClient- Parameters:
computationProperties- map of computation properties- Returns:
- computation id
- Throws:
ServiceException
-
getComputationDataByComputationProperties
public ComputationData getComputationDataByComputationProperties(Map<String,String> computationProperties) throws ServiceException
Description copied from class:SClientGet Computation Data by computation properties- Specified by:
getComputationDataByComputationPropertiesin classSClient- Parameters:
computationProperties- computation properties- Returns:
- computation data
- Throws:
ServiceException
-
-