Class DeploymentService
java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.DeploymentService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentService(DeploymentRepository deploymentRepository, org.qubership.integration.platform.catalog.persistence.configs.repository.chain.ElementRepository elementRepository, ChainService chainService, SystemService systemService, SnapshotService snapshotService, org.qubership.integration.platform.catalog.service.library.LibraryElementsService libraryElementsService, org.qubership.integration.platform.catalog.service.ActionsLogService actionLogger, DeploymentBuilderService deploymentBuilderService, org.qubership.integration.platform.catalog.persistence.TransactionHandler transactionHandler) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.tuple.Pair<Boolean, List<BulkDeploymentResponse>> bulkCreate(BulkDeploymentRequest request) booleancheckRouteExists(org.qubership.integration.platform.catalog.model.ElementRoute route, String excludeChainId) static voidclearDeploymentsUpdateCache(Long version) org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deploymentcreate(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, String chainId, String snapshotId) org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deploymentcreate(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deploymentcreate(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot, List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> excludeDeployments) List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> createAll(List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> deployments, String chainId) List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> createAll(List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> deployments, String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) Create deployments from the same snapshot with external triggers checkingvoiddeleteAllByChainId(String chainId) voiddeleteAllBySnapshotId(String snapshotId) voiddeleteById(String deploymentId) List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> findAllByChainId(String chainId) org.qubership.integration.platform.catalog.persistence.configs.entity.chain.DeploymentList<org.apache.commons.lang3.tuple.Pair<String, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment>> findRouteDeployments(org.qubership.integration.platform.catalog.model.ElementRoute route, String excludeChainId) longgetDeploymentsCountByDomain(String domainName) getDeploymentsForDomain(String domainName, org.qubership.integration.platform.catalog.model.deployment.engine.EngineDeploymentsDTO engineDeployments) voidsubscribeMessages(MultiConsumer.Consumer5<String, String, String, GenericMessageType, Map<String, String>> messagesCallback)
-
Constructor Details
-
DeploymentService
@Autowired public DeploymentService(DeploymentRepository deploymentRepository, org.qubership.integration.platform.catalog.persistence.configs.repository.chain.ElementRepository elementRepository, ChainService chainService, SystemService systemService, SnapshotService snapshotService, org.qubership.integration.platform.catalog.service.library.LibraryElementsService libraryElementsService, org.qubership.integration.platform.catalog.service.ActionsLogService actionLogger, DeploymentBuilderService deploymentBuilderService, org.qubership.integration.platform.catalog.persistence.TransactionHandler transactionHandler)
-
-
Method Details
-
findById
@Transactional public org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment findById(String deploymentId) -
findAllByChainId
-
getDeploymentsCountByDomain
-
createAll
-
createAll
public List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> createAll(List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> deployments, String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) Create deployments from the same snapshot with external triggers checking- Parameters:
deployments- with different domainschainId-- Returns:
- list of created deployments
-
create
public org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment create(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, String chainId, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot) -
create
-
create
public org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment create(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Chain chain, org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Snapshot snapshot, List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> excludeDeployments) -
bulkCreate
@Transactional public org.apache.commons.lang3.tuple.Pair<Boolean,List<BulkDeploymentResponse>> bulkCreate(BulkDeploymentRequest request) -
checkRouteExists
public boolean checkRouteExists(org.qubership.integration.platform.catalog.model.ElementRoute route, String excludeChainId) -
findRouteDeployments
-
deleteAllByChainId
- Throws:
DeploymentProcessingException
-
deleteAllBySnapshotId
- Throws:
DeploymentProcessingException
-
deleteById
- Throws:
DeploymentProcessingException
-
getDeploymentsForDomain
@Transactional(propagation=NEVER) public DeploymentsUpdate getDeploymentsForDomain(String domainName, org.qubership.integration.platform.catalog.model.deployment.engine.EngineDeploymentsDTO engineDeployments) -
subscribeMessages
public void subscribeMessages(MultiConsumer.Consumer5<String, String, String, GenericMessageType, Map<String, String>> messagesCallback) -
clearDeploymentsUpdateCache
-