test_class.declarator: alienMonitorDao
test_class.modifier: @Resource(name = "alien-monitor-es-dao")
      private
test_class.original_string: @Resource(name = "alien-monitor-es-dao")
      private IGenericSearchDAO alienMonitorDao;
test_class.type: IGenericSearchDAO
test_class.var_name: alienMonitorDao
test_class.declarator: deploymentService
test_class.modifier: @Inject
      private
test_class.original_string: @Inject
      private DeploymentService deploymentService;
test_class.type: DeploymentService
test_class.var_name: deploymentService
test_class.file: alien4cloud-core/src/test/java/alien4cloud/deployment/DeploymentServiceTest.java
test_class.identifier: DeploymentServiceTest
test_case.body: @Test
      public void isArchiveDeployedTest() {
          DeploymentTopology deploymentTopology = new DeploymentTopology();
          deploymentTopology.setId("id");
          deploymentTopology.setDeployed(false);
          deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "2.0.0")));
          alienMonitorDao.save(deploymentTopology);
  
          deploymentTopology.setId("id2");
          deploymentTopology.setDeployed(true);
          deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("tata", "1.0.0")));
          alienMonitorDao.save(deploymentTopology);
  
          deploymentTopology.setId("id3");
          deploymentTopology.setDeployed(true);
          deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "1.0.0")));
          alienMonitorDao.save(deploymentTopology);
  
          Assert.assertFalse(deploymentService.isArchiveDeployed("toto", "2.0.0"));
  
          deploymentTopology.setId("id");
          deploymentTopology.setDeployed(true);
          deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "2.0.0")));
          alienMonitorDao.save(deploymentTopology);
  
          Assert.assertTrue(deploymentService.isArchiveDeployed("toto", "2.0.0"));
      }
test_case.class_method_signature: DeploymentServiceTest.isArchiveDeployedTest()
test_case.full_signature: @Test public void isArchiveDeployedTest()
test_case.identifier: isArchiveDeployedTest
test_case.invocations: setId setDeployed setDependencies newHashSet save setId setDeployed setDependencies newHashSet save setId setDeployed setDependencies newHashSet save assertFalse isArchiveDeployed setId setDeployed setDependencies newHashSet save assertTrue isArchiveDeployed
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isArchiveDeployedTest()
focal_class.declarator: alienDao
focal_class.modifier: @Resource(name = "alien-es-dao")
      private
focal_class.original_string: @Resource(name = "alien-es-dao")
      private IGenericSearchDAO alienDao;
focal_class.type: IGenericSearchDAO
focal_class.var_name: alienDao
focal_class.declarator: alienMonitorDao
focal_class.modifier: @Resource(name = "alien-monitor-es-dao")
      private
focal_class.original_string: @Resource(name = "alien-monitor-es-dao")
      private IGenericSearchDAO alienMonitorDao;
focal_class.type: IGenericSearchDAO
focal_class.var_name: alienMonitorDao
focal_class.declarator: deploymentRuntimeStateService
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private DeploymentRuntimeStateService deploymentRuntimeStateService;
focal_class.type: DeploymentRuntimeStateService
focal_class.var_name: deploymentRuntimeStateService
focal_class.declarator: deploymentContextService
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private DeploymentContextService deploymentContextService;
focal_class.type: DeploymentContextService
focal_class.var_name: deploymentContextService
focal_class.declarator: deploymentTopologyService
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private DeploymentTopologyService deploymentTopologyService;
focal_class.type: DeploymentTopologyService
focal_class.var_name: deploymentTopologyService
focal_class.declarator: eventPublisher
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private ApplicationEventPublisher eventPublisher;
focal_class.type: ApplicationEventPublisher
focal_class.var_name: eventPublisher
focal_class.file: alien4cloud-core/src/main/java/alien4cloud/deployment/DeploymentService.java
focal_class.identifier: DeploymentService
focal_class.class_method_signature: DeploymentService.getActiveDeployments()
focal_class.full_signature: public Deployment[] getActiveDeployments()
focal_class.identifier: getActiveDeployments
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Deployment[]
focal_class.signature: Deployment[] getActiveDeployments()
focal_class.class_method_signature: DeploymentService.getDeployments(String orchestratorId, String sourceId, String environmentId, int from, int size)
focal_class.full_signature: public Deployment[] getDeployments(String orchestratorId, String sourceId, String environmentId, int from, int size)
focal_class.identifier: getDeployments
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId, String sourceId, String environmentId, int from, int size)
focal_class.return: Deployment[]
focal_class.signature: Deployment[] getDeployments(String orchestratorId, String sourceId, String environmentId, int from, int size)
focal_class.class_method_signature: DeploymentService.searchDeployments(String query, String orchestratorId, String environmentId, String sourceId, int from, int size)
focal_class.full_signature: public FacetedSearchResult searchDeployments(String query, String orchestratorId, String environmentId, String sourceId, int from, int size)
focal_class.identifier: searchDeployments
focal_class.modifiers: public
focal_class.parameters: (String query, String orchestratorId, String environmentId, String sourceId, int from, int size)
focal_class.return: FacetedSearchResult
focal_class.signature: FacetedSearchResult searchDeployments(String query, String orchestratorId, String environmentId, String sourceId, int from, int size)
focal_class.class_method_signature: DeploymentService.buildDeploymentFilters(String orchestratorId, String sourceId, String environmentId)
focal_class.full_signature: private FilterBuilder buildDeploymentFilters(String orchestratorId, String sourceId, String environmentId)
focal_class.identifier: buildDeploymentFilters
focal_class.modifiers: private
focal_class.parameters: (String orchestratorId, String sourceId, String environmentId)
focal_class.return: FilterBuilder
focal_class.signature: FilterBuilder buildDeploymentFilters(String orchestratorId, String sourceId, String environmentId)
focal_class.class_method_signature: DeploymentService.getActiveDeployments(String orchestratorId, String sourceId, int from, int size)
focal_class.full_signature: public Deployment[] getActiveDeployments(String orchestratorId, String sourceId, int from, int size)
focal_class.identifier: getActiveDeployments
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId, String sourceId, int from, int size)
focal_class.return: Deployment[]
focal_class.signature: Deployment[] getActiveDeployments(String orchestratorId, String sourceId, int from, int size)
focal_class.class_method_signature: DeploymentService.get(String id)
focal_class.full_signature: public Deployment get(String id)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: Deployment
focal_class.signature: Deployment get(String id)
focal_class.class_method_signature: DeploymentService.getOrfail(String id)
focal_class.full_signature: public Deployment getOrfail(String id)
focal_class.identifier: getOrfail
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: Deployment
focal_class.signature: Deployment getOrfail(String id)
focal_class.class_method_signature: DeploymentService.getActiveDeploymentOrFail(String environmentId)
focal_class.full_signature: public Deployment getActiveDeploymentOrFail(String environmentId)
focal_class.identifier: getActiveDeploymentOrFail
focal_class.modifiers: public
focal_class.parameters: (String environmentId)
focal_class.return: Deployment
focal_class.signature: Deployment getActiveDeploymentOrFail(String environmentId)
focal_class.class_method_signature: DeploymentService.getDeployment(String applicationEnvironmentId)
focal_class.full_signature: public Deployment getDeployment(String applicationEnvironmentId)
focal_class.identifier: getDeployment
focal_class.modifiers: public
focal_class.parameters: (String applicationEnvironmentId)
focal_class.return: Deployment
focal_class.signature: Deployment getDeployment(String applicationEnvironmentId)
focal_class.class_method_signature: DeploymentService.getActiveDeployment(String applicationEnvironmentId)
focal_class.full_signature: public Deployment getActiveDeployment(String applicationEnvironmentId)
focal_class.identifier: getActiveDeployment
focal_class.modifiers: public
focal_class.parameters: (String applicationEnvironmentId)
focal_class.return: Deployment
focal_class.signature: Deployment getActiveDeployment(String applicationEnvironmentId)
focal_class.class_method_signature: DeploymentService.getActiveDeploymentOrFail(String topologyId, String orchestratorId)
focal_class.full_signature: public Deployment getActiveDeploymentOrFail(String topologyId, String orchestratorId)
focal_class.identifier: getActiveDeploymentOrFail
focal_class.modifiers: public
focal_class.parameters: (String topologyId, String orchestratorId)
focal_class.return: Deployment
focal_class.signature: Deployment getActiveDeploymentOrFail(String topologyId, String orchestratorId)
focal_class.class_method_signature: DeploymentService.getActiveDeployment(String orchestratorId, String topologyId)
focal_class.full_signature: public Deployment getActiveDeployment(String orchestratorId, String topologyId)
focal_class.identifier: getActiveDeployment
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId, String topologyId)
focal_class.return: Deployment
focal_class.signature: Deployment getActiveDeployment(String orchestratorId, String topologyId)
focal_class.class_method_signature: DeploymentService.isActiveDeployment(String orchestratorId, String orchestratorDeploymentId)
focal_class.full_signature: public boolean isActiveDeployment(String orchestratorId, String orchestratorDeploymentId)
focal_class.identifier: isActiveDeployment
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId, String orchestratorDeploymentId)
focal_class.return: boolean
focal_class.signature: boolean isActiveDeployment(String orchestratorId, String orchestratorDeploymentId)
focal_class.class_method_signature: DeploymentService.getCloudActiveDeploymentContexts(String orchestratorId)
focal_class.full_signature: public Map<String, String> getCloudActiveDeploymentContexts(String orchestratorId)
focal_class.identifier: getCloudActiveDeploymentContexts
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getCloudActiveDeploymentContexts(String orchestratorId)
focal_class.class_method_signature: DeploymentService.getOrchestratorActiveDeployments(String orchestratorId)
focal_class.full_signature: public Deployment[] getOrchestratorActiveDeployments(String orchestratorId)
focal_class.identifier: getOrchestratorActiveDeployments
focal_class.modifiers: public
focal_class.parameters: (String orchestratorId)
focal_class.return: Deployment[]
focal_class.signature: Deployment[] getOrchestratorActiveDeployments(String orchestratorId)
focal_class.class_method_signature: DeploymentService.getOrchestratorDeploymentIdsByOrchestratorId(String applicationEnvironmentId)
focal_class.full_signature: public Map<String, Set<String>> getOrchestratorDeploymentIdsByOrchestratorId(String applicationEnvironmentId)
focal_class.identifier: getOrchestratorDeploymentIdsByOrchestratorId
focal_class.modifiers: public
focal_class.parameters: (String applicationEnvironmentId)
focal_class.return: Map<String, Set<String>>
focal_class.signature: Map<String, Set<String>> getOrchestratorDeploymentIdsByOrchestratorId(String applicationEnvironmentId)
focal_class.class_method_signature: DeploymentService.markUndeployed(Deployment deployment)
focal_class.full_signature: public void markUndeployed(Deployment deployment)
focal_class.identifier: markUndeployed
focal_class.modifiers: public
focal_class.parameters: (Deployment deployment)
focal_class.return: void
focal_class.signature: void markUndeployed(Deployment deployment)
focal_class.class_method_signature: DeploymentService.isArchiveDeployed(String archiveName, String archiveVersion)
focal_class.full_signature: public boolean isArchiveDeployed(String archiveName, String archiveVersion)
focal_class.identifier: isArchiveDeployed
focal_class.modifiers: public
focal_class.parameters: (String archiveName, String archiveVersion)
focal_class.return: boolean
focal_class.signature: boolean isArchiveDeployed(String archiveName, String archiveVersion)
focal_class.class_method_signature: DeploymentService.checkDeploymentUpdateFeasibility(Deployment deployment, DeploymentTopology deploymentTopology)
focal_class.full_signature: public void checkDeploymentUpdateFeasibility(Deployment deployment, DeploymentTopology deploymentTopology)
focal_class.identifier: checkDeploymentUpdateFeasibility
focal_class.modifiers: public
focal_class.parameters: (Deployment deployment, DeploymentTopology deploymentTopology)
focal_class.return: void
focal_class.signature: void checkDeploymentUpdateFeasibility(Deployment deployment, DeploymentTopology deploymentTopology)
focal_method.body: public boolean isArchiveDeployed(String archiveName, String archiveVersion) {
          return alienMonitorDao.buildQuery(DeploymentTopology.class).prepareSearch()
                  .setFilters(fromKeyValueCouples("deployed", "true", "dependencies.name", archiveName, "dependencies.version", archiveVersion)).count() > 0;
      }
focal_method.class_method_signature: DeploymentService.isArchiveDeployed(String archiveName, String archiveVersion)
focal_method.full_signature: public boolean isArchiveDeployed(String archiveName, String archiveVersion)
focal_method.identifier: isArchiveDeployed
focal_method.invocations: count setFilters prepareSearch buildQuery fromKeyValueCouples
focal_method.modifiers: public
focal_method.parameters: (String archiveName, String archiveVersion)
focal_method.return: boolean
focal_method.signature: boolean isArchiveDeployed(String archiveName, String archiveVersion)