Package org.apache.stratos.lb.common.group.mgt

Examples of org.apache.stratos.lb.common.group.mgt.SubDomainAwareGroupManagementAgent


        }

        // checks the existence.
        if (clusteringAgent.getGroupManagementAgent(domain, subDomain) == null) {
           
            clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(subDomain),
                domain, subDomain,-1);
           
            log.info("Group management agent added to cluster domain: " +
                domain + " and sub domain: " + subDomain);
        }
View Full Code Here


         * Add Group Management Agent if one is not already present for this domain and sub
         * domain
         */

        if (clusteringAgent.getGroupManagementAgent(domain, subDomain) == null) {
            clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(subDomain),
                                                    domain, subDomain,-1);

            if (log.isDebugEnabled()) {
                log.debug("Group management agent added to cluster domain: " + domain +
                          " and sub domain: " + subDomain);
View Full Code Here

                                    String msg = "Cannot instantiate GroupManagementAgent. Class: " + gmAgentClass;
                                    log.error(msg, e);
                                    throw new TenantAwareLoadBalanceEndpointException(msg, e);
                                }
                            } else {
                                groupManagementAgent = new SubDomainAwareGroupManagementAgent(subDomain);
                            }
                            clusteringAgent.addGroupManagementAgent(groupManagementAgent,
                                                                    domain, subDomain,-1);
                            if (log.isDebugEnabled()) {
                                log.debug("Group management agent added to cluster domain: " +
View Full Code Here

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
        configCtx = ConfigurationContextFactory.createEmptyConfigurationContext();
        clusteringAgent = new TribesClusteringAgent();
        clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
                "worker"),
                "wso2.as1.domain", "worker", -1);
        clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
                "mgt"),
                "wso2.as1.domain", "mgt", -1);
        clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
                "mgt"),
                "wso2.as2.domain", "mgt", -1);
        configCtx.getAxisConfiguration().setClusteringAgent(clusteringAgent);

        File f = new File("src/test/resources/loadbalancer.conf");
View Full Code Here

    public void testAddition(){
        ServiceConfiguration config1 = lbConfig.new ServiceConfiguration();
        config1.setDomain("wso2.as3.domain");
        config1.setSub_domain("mgt");
        lbConfig.addServiceConfiguration(config1);
        clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
                "mgt"),
                "wso2.as3.domain", "mgt", -1);
        map = AutoscaleUtil.getAppDomainContexts(configCtx, lbConfig);
       
        Assert.assertEquals(true, map.containsKey("wso2.as3.domain"));
View Full Code Here

TOP

Related Classes of org.apache.stratos.lb.common.group.mgt.SubDomainAwareGroupManagementAgent

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.