Class SClient
- java.lang.Object
-
- org.gcube.data.analysis.dataminermanagercl.server.dmservice.SClient
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SClient4WPS
public abstract class SClient extends Object implements Serializable
Client of service- Author:
- Giancarlo Panichi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SClient()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringcancelComputation(ComputationId computationId)Cancel a computationabstract ComputationDatagetComputationDataByComputationProperties(Map<String,String> computationProperties)Get Computation Data by computation propertiesabstract ComputationStatusgetComputationStatus(ComputationId computationId)Get Computation Statusabstract List<Parameter>getInputParameters(Operator operator)Get input paramters of the operatorabstract OperatorgetOperatorById(String id)Retrieve the operator by idabstract OperatorgetOperatorById(String id, boolean refresh)abstract List<OperatorsClassification>getOperatorsClassifications()Retrieve the list of operatorsabstract List<OperatorsClassification>getOperatorsClassifications(boolean refresh)Retrieve the list of operators and refresh them if requiredabstract OutputDatagetOutputDataByComputationId(ComputationId computationId)Get Output of computationabstract List<Parameter>getOutputParameters(Operator operator)Get output paramters of the operatorabstract ServiceInfogetServiceInfo()Retrieve service infoabstract ComputationIdresubmitComputation(Map<String,String> computationProperties)Resubmit a computation only by computation propertiesabstract ComputationIdstartComputation(Operator operator)Start ComputationStringtoString()
-
-
-
Method Detail
-
getOperatorsClassifications
public abstract List<OperatorsClassification> getOperatorsClassifications() throws Exception
Retrieve the list of operators- Returns:
- list of operators classification
- Throws:
Exception- exception
-
getOperatorsClassifications
public abstract List<OperatorsClassification> getOperatorsClassifications(boolean refresh) throws Exception
Retrieve the list of operators and refresh them if required- Parameters:
refresh- refresh operators in cache- Returns:
- list of operators classification
- Throws:
Exception- exception
-
getOperatorById
public abstract Operator getOperatorById(String id) throws Exception
Retrieve the operator by id- Parameters:
id- operator id- Returns:
- operator
- Throws:
Exception- exception
-
getOperatorById
public abstract Operator getOperatorById(String id, boolean refresh) throws Exception
- Parameters:
id- operator idrefresh- if true refresh the operators in cache- Returns:
- operator
- Throws:
Exception- exception
-
getInputParameters
public abstract List<Parameter> getInputParameters(Operator operator) throws Exception
Get input paramters of the operator- Parameters:
operator- operator- Returns:
- list of parameter
- Throws:
Exception- exception
-
getOutputParameters
public abstract List<Parameter> getOutputParameters(Operator operator) throws Exception
Get output paramters of the operator- Parameters:
operator- operator- Returns:
- list of parameter
- Throws:
Exception- exception
-
startComputation
public abstract ComputationId startComputation(Operator operator) throws Exception
Start Computation- Parameters:
operator- operator- Returns:
- computation id
- Throws:
Exception- exception
-
cancelComputation
public abstract String cancelComputation(ComputationId computationId) throws Exception
Cancel a computation- Parameters:
computationId- computation Id- Returns:
- cancel
- Throws:
Exception- exception
-
getComputationStatus
public abstract ComputationStatus getComputationStatus(ComputationId computationId) throws Exception
Get Computation Status- Parameters:
computationId- computation Id- Returns:
- computation status
- Throws:
Exception- exception
-
getOutputDataByComputationId
public abstract OutputData getOutputDataByComputationId(ComputationId computationId) throws Exception
Get Output of computation- Parameters:
computationId- computation id- Returns:
- output data
- Throws:
Exception- exception
-
getComputationDataByComputationProperties
public abstract ComputationData getComputationDataByComputationProperties(Map<String,String> computationProperties) throws Exception
Get Computation Data by computation properties- Parameters:
computationProperties- computation properties- Returns:
- computation data
- Throws:
Exception- exception
-
resubmitComputation
public abstract ComputationId resubmitComputation(Map<String,String> computationProperties) throws Exception
Resubmit a computation only by computation properties- Parameters:
computationProperties- map of computation properties- Returns:
- computation id
- Throws:
Exception- exception
-
getServiceInfo
public abstract ServiceInfo getServiceInfo() throws Exception
Retrieve service info- Returns:
- service info
- Throws:
Exception- exception
-
-