Examples of TopologyConfig


Examples of org.apache.stratos.cloud.controller.pojo.TopologyConfig

                log.warn("Topology synchronization is disabled!");
            }
        }

        if (isEnable) {
            TopologyConfig topologyConfig = new TopologyConfig();
            // load properties
            IaasProviderConfigParser.loadProperties(FILE_NAME, element, topologyConfig.getProperties());

            dataHolder.setTopologyConfig(topologyConfig);
        }
    }
View Full Code Here

Examples of org.apache.stratos.cloud.controller.util.TopologyConfig

    }
  }

  @Override
  public void init() {
    TopologyConfig config = FasterLookUpDataHolder.getInstance()
        .getTopologyConfig();
    String cron = config.getProperty(CloudControllerConstants.CRON_PROPERTY);
    topologySynchronizerCron = cron == null ? topologySynchronizerCron
        : cron;

    String url = config
        .getProperty(CloudControllerConstants.AMQP_CONNECTION_URL_PROPERTY);
    amqpConnectionUrl = url == null ? amqpConnectionUrl : url;

    Properties initialContextProperties = new Properties();

    String initialContextFactory = config
        .getProperty(CloudControllerConstants.AMQP_INITIAL_CONTEXT_FACTORY_PROPERTY);
    amqpInitialContextFactory = initialContextFactory == null ? amqpInitialContextFactory
        : initialContextFactory;

    initialContextProperties.put("java.naming.factory.initial",
        amqpInitialContextFactory);

    initialContextProperties.put("connectionfactory.qpidConnectionfactory",
        amqpConnectionUrl);

    String connectionFactory = config
        .getProperty(CloudControllerConstants.AMQP_TOPIC_CONNECTION_FACTORY_PROPERTY);
    amqpTopicConnectionFactory = connectionFactory == null ? amqpTopicConnectionFactory
        : connectionFactory;

    try {
View Full Code Here

Examples of org.apache.stratos.cloud.controller.util.TopologyConfig

    FasterLookUpDataHolder dataHolder = FasterLookUpDataHolder.getInstance();
   
    dataHolder.setEnableTopologySync(isEnable);

    if (isEnable) {
      TopologyConfig topologyConfig = new TopologyConfig();
      // load properties
      loadProperties(element, topologyConfig.getProperties());

      dataHolder.setTopologyConfig(topologyConfig);
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.