public class SClient4WPS extends SClient
| Constructor and Description |
|---|
SClient4WPS(ServiceCredentials serviceCredentials) |
SClient4WPS(ServiceCredentials serviceCredentials,
String serviceAddress) |
| Modifier and Type | Method and Description |
|---|---|
String |
cancelComputation(ComputationId computationId)
Cancel a computation
|
ComputationData |
getComputationDataByComputationProperties(Map<String,String> computationProperties)
Get Computation Data by computation properties
|
ComputationStatus |
getComputationStatus(ComputationId computationId)
Get Computation Status
|
List<Parameter> |
getInputParameters(Operator operator)
Get input paramters of the operator
|
Operator |
getOperatorById(String id)
Retrieve the operator by id
|
Operator |
getOperatorById(String id,
boolean refresh) |
List<OperatorsClassification> |
getOperatorsClassifications()
Retrieve the list of operators
|
List<OperatorsClassification> |
getOperatorsClassifications(boolean refresh)
Retrieve the list of operators and refresh them if required
|
OutputData |
getOutputDataByComputationId(ComputationId computationId)
Get Output of computation
|
List<Parameter> |
getOutputParameters(Operator operator)
Get output paramters of the operator
|
ServiceInfo |
getServiceInfo()
Retrieve service info
|
ComputationId |
resubmitComputation(Map<String,String> computationProperties)
Resubmit a computation only by computation properties
|
ComputationId |
startComputation(Operator operator)
Start Computation
|
String |
toString() |
public SClient4WPS(ServiceCredentials serviceCredentials) throws ServiceException
serviceCredentials - sevice credentialsServiceException - ServiceExceptionpublic SClient4WPS(ServiceCredentials serviceCredentials, String serviceAddress) throws ServiceException
serviceCredentials - sevice credentialsserviceAddress - valid url for example:
http://dataminer1-devnext.d4science.org/wps/ServiceException - ServiceExceptionpublic ServiceInfo getServiceInfo() throws ServiceException
SClientgetServiceInfo in class SClientServiceExceptionpublic Operator getOperatorById(String id) throws Exception
SClientgetOperatorById in class SClientid - operator idException - exceptionpublic Operator getOperatorById(String id, boolean refresh) throws Exception
getOperatorById in class SClientid - operator idrefresh - if true refresh the operators in cacheException - exceptionpublic List<OperatorsClassification> getOperatorsClassifications() throws ServiceException
SClientgetOperatorsClassifications in class SClientServiceExceptionpublic List<OperatorsClassification> getOperatorsClassifications(boolean refresh) throws ServiceException
SClientgetOperatorsClassifications in class SClientrefresh - refresh operators in cacheServiceExceptionpublic List<Parameter> getInputParameters(Operator operator) throws ServiceException
SClientgetInputParameters in class SClientoperator - operatorServiceExceptionpublic List<Parameter> getOutputParameters(Operator operator) throws Exception
SClientgetOutputParameters in class SClientoperator - operatorException - exceptionpublic ComputationId startComputation(Operator operator) throws ServiceException
SClientstartComputation in class SClientoperator - operatorServiceExceptionpublic ComputationStatus getComputationStatus(ComputationId computationId) throws ServiceException
SClientgetComputationStatus in class SClientcomputationId - computation IdServiceExceptionpublic OutputData getOutputDataByComputationId(ComputationId computationId) throws ServiceException
SClientgetOutputDataByComputationId in class SClientcomputationId - computation idServiceExceptionpublic String cancelComputation(ComputationId computationId) throws ServiceException
SClientcancelComputation in class SClientcomputationId - computation IdServiceExceptionpublic ComputationId resubmitComputation(Map<String,String> computationProperties) throws ServiceException
SClientresubmitComputation in class SClientcomputationProperties - map of computation propertiesServiceExceptionpublic ComputationData getComputationDataByComputationProperties(Map<String,String> computationProperties) throws ServiceException
SClientgetComputationDataByComputationProperties in class SClientcomputationProperties - computation propertiesServiceExceptionCopyright © 2021. All Rights Reserved.