Package org.apache.stratos.adc.topology.mgt.service

Examples of org.apache.stratos.adc.topology.mgt.service.TopologyManagementService


            }
            throw new AlreadySubscribedException(msg, cartridgeType);
          }
        }

                TopologyManagementService topologyService = DataHolder.getTopologyMgtService();
                DomainContext[] domainContexts = topologyService.getDomainsAndSubdomains(cartridgeType, tenantId);
                log.info("Retrieved " + domainContexts.length + " domain and corresponding subdomain pairs");

                if (domainContexts.length > 0) {
                                          if(domainContexts.length > 2) {
                                              if(log.isDebugEnabled())
View Full Code Here


            cartridgeInfo = getServiceClient().getCartridgeInfo(sub.getCartridge());
        } catch (Exception e) {
            throw new ADCException("Cannot get cartridge info: " + sub.getCartridge(), e);
        }

        TopologyManagementService topologyMgtService = DataHolder.getTopologyMgtService();

        String[] ips =
                topologyMgtService.getActiveIPs(sub.getCartridge(),
                        sub.getClusterDomain(),
                        sub.getClusterSubdomain());
        return populateCartridgeInfo(cartridgeInfo, sub, ips, tenantDomain);
    }
View Full Code Here

            continue;
          }
          if (!cartridgeMatches(cartridgeInfo, subscription, searchPattern)) {
            continue;
          }
          TopologyManagementService topologyMgtService = DataHolder.getTopologyMgtService();
          String[] ips = topologyMgtService.getActiveIPs(subscription.getCartridge(),
              subscription.getClusterDomain(), subscription.getClusterSubdomain());
          Cartridge cartridge = ApplicationManagementUtil.populateCartridgeInfo(cartridgeInfo, subscription, ips, tenantDomain);
          cartridges.add(cartridge);
        }
      } else {
View Full Code Here

            log.info("Repo is destroyed successfully.. ");

            PersistenceManager.updateSubscriptionState(subscription.getSubscriptionId(), "UNSUBSCRIBED");
            new DNSManager().removeSubDomain(subscription.getHostName());
            registryManager.removeDomainMappingFromRegistry(subscription.getHostName());
            TopologyManagementService topologyMgtService = DataHolder.getTopologyMgtService();
     
            String[] ips = topologyMgtService.getActiveIPs(subscription.getCartridge(),
          subscription.getClusterDomain(), subscription.getClusterSubdomain());
            PersistenceManager.updateInstanceState("INACTIVE", ips, subscription.getClusterDomain(), subscription.getClusterSubdomain(), subscription.getCartridge());

        } catch (ADCException e) {
          log.error(e.getMessage(), e);
View Full Code Here

      if (!keyFile.exists()) {
        log.error("The key file does not exist! " + cartridgePrivateKey);
      }

      if (subscription != null) {
        TopologyManagementService topologyMgtService = DataHolder.getTopologyMgtService();

       
        if (topologyMgtService == null) {
          String msg = " Topology Management Service is null ";
          log.error(msg);
          throw new Exception(msg);
        }

        String[] activeIpArray =
                                 topologyMgtService.getActiveIPs(subscription.getCartridge(),
                                                                 subscription.getClusterDomain(),
                                                                 subscription.getClusterSubdomain());
        try {

          for (String instanceIp : activeIpArray) {
View Full Code Here

TOP

Related Classes of org.apache.stratos.adc.topology.mgt.service.TopologyManagementService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.