Interface ServiceBuilder
-
public interface ServiceBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description private static ServiceBuilder
accessServiceBuilder()
private static AccessService
buildAccessService(ProviderConfig providerConfig, String accessServiceTemplateId, String price, String creator)
private static ComputingService
buildComputingService(ProviderConfig providerConfig, ComputingService.Provider computingProvider, String computingServiceTemplateId, String price, String creator)
Service
buildService(Map<String,Object> serviceConfiguration)
private static ServiceBuilder
computingServiceBuilder()
static Map<String,Object>
getAccessConditionParams(String did, String price, String escrowRewardAddress, String lockRewardConditionAddress, String accessSecretStoreConditionAddress)
Gets the Access ConditionStatusMap Params of a DDOstatic Map<String,Object>
getComputingConditionParams(String did, String price, String escrowRewardAddress, String lockRewardConditionAddress, String execComputeConditionAddress)
Gets the Computing ConditionStatusMap Params of a DDOstatic ServiceBuilder
getServiceBuilder(Service.ServiceTypes serviceType)
-
-
-
Method Detail
-
buildService
Service buildService(Map<String,Object> serviceConfiguration) throws DDOException
- Throws:
DDOException
-
getServiceBuilder
static ServiceBuilder getServiceBuilder(Service.ServiceTypes serviceType) throws ServiceException
- Throws:
ServiceException
-
computingServiceBuilder
private static ServiceBuilder computingServiceBuilder()
-
buildComputingService
private static ComputingService buildComputingService(ProviderConfig providerConfig, ComputingService.Provider computingProvider, String computingServiceTemplateId, String price, String creator) throws DDOException
- Throws:
DDOException
-
accessServiceBuilder
private static ServiceBuilder accessServiceBuilder()
-
buildAccessService
private static AccessService buildAccessService(ProviderConfig providerConfig, String accessServiceTemplateId, String price, String creator)
-
getAccessConditionParams
static Map<String,Object> getAccessConditionParams(String did, String price, String escrowRewardAddress, String lockRewardConditionAddress, String accessSecretStoreConditionAddress)
Gets the Access ConditionStatusMap Params of a DDO- Parameters:
did
- the didprice
- the priceescrowRewardAddress
- the address of the EscrowReward ConditionaccessSecretStoreConditionAddress
- the address of the accessSecretStore conditionlockRewardConditionAddress
- the address of the lockReward Condition- Returns:
- a Map with the params of the Access ConditionStatusMap
-
getComputingConditionParams
static Map<String,Object> getComputingConditionParams(String did, String price, String escrowRewardAddress, String lockRewardConditionAddress, String execComputeConditionAddress)
Gets the Computing ConditionStatusMap Params of a DDO- Parameters:
did
- the didprice
- the priceescrowRewardAddress
- the address of the EscrowReward ConditionlockRewardConditionAddress
- the address of the lockReward ConditionexecComputeConditionAddress
- the address of the execCoompute condition- Returns:
- a Map with the params of the Access ConditionStatusMap
-
-