java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.DeploymentService

@Service public class DeploymentService extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.lang3.tuple.Pair<Boolean,List<BulkDeploymentResponse>>
     
    boolean
    checkRouteExists(org.qubership.integration.platform.catalog.model.ElementRoute route, String excludeChainId)
     
    static void
     
    org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment
    create(org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment deployment, String chainId, String snapshotId)
     
    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)
     
    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)
     
    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 checking
    void
     
    void
     
    void
    deleteById(String deploymentId)
     
    List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment>
     
    org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment
    findById(String deploymentId)
     
    List<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)
     
    long
     
    getDeploymentsForDomain(String domainName, org.qubership.integration.platform.catalog.model.deployment.engine.EngineDeploymentsDTO engineDeployments)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Transactional public List<org.qubership.integration.platform.catalog.persistence.configs.entity.chain.Deployment> findAllByChainId(String chainId)
    • getDeploymentsCountByDomain

      @Transactional public long getDeploymentsCountByDomain(String domainName)
    • 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)
    • 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 domains
      chainId -
      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

      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, String snapshotId)
    • 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

      public List<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)
    • deleteAllByChainId

      public void deleteAllByChainId(String chainId) throws DeploymentProcessingException
      Throws:
      DeploymentProcessingException
    • deleteAllBySnapshotId

      public void deleteAllBySnapshotId(String snapshotId) throws DeploymentProcessingException
      Throws:
      DeploymentProcessingException
    • deleteById

      public void deleteById(String deploymentId) throws DeploymentProcessingException
      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

      public static void clearDeploymentsUpdateCache(Long version)