Package org.apache.axis2.clustering.configuration

Examples of org.apache.axis2.clustering.configuration.DefaultConfigurationManagerListener


            throws AxisFault {
        ClusterManager clusterManager = new TribesClusterManager();
        configCtx.getAxisConfiguration().setClusterManager(clusterManager);

        configManager.
                setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        clusterManager.setConfigurationManager(configManager);

        contextManager.setContextManagerListener(new DefaultContextManagerListener());
        clusterManager.setContextManager(contextManager);
View Full Code Here


        return contextManager;
    }

    protected ConfigurationManager getConfigurationManager() throws AxisFault {
        ConfigurationManager contextManager = new DefaultConfigurationManager();
        contextManager.setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        return contextManager;
    }
View Full Code Here

        clusterManager2.getContextManager().setConfigurationContext(configurationContext2);

        clusterManager1.getConfigurationManager().setConfigurationContext(configurationContext1);
        clusterManager2.getConfigurationManager().setConfigurationContext(configurationContext2);

        configManagerListener1 = new DefaultConfigurationManagerListener();
        clusterManager1.getConfigurationManager().setConfigurationManagerListener(configManagerListener1);
        configManagerListener2 = new DefaultConfigurationManagerListener();
        clusterManager2.getConfigurationManager().setConfigurationManagerListener(configManagerListener2);

        //giving both Nodes the same deployment configuration
        axisConfiguration1 = configurationContext1.getAxisConfiguration();
        serviceGroup1 = new AxisServiceGroup(axisConfiguration1);
View Full Code Here

        TribesClusterManager tribesClusterManager = new TribesClusterManager();
        tribesClusterManager.setConfigurationContext(configCtx);
        tribesClusterManager.setConfigurationContext(configurationContext1);
        DefaultConfigurationManager configurationManager = new DefaultConfigurationManager();
        configurationManager.
                setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        tribesClusterManager.setConfigurationManager(configurationManager);
        DefaultContextManager contextManager = new DefaultContextManager();
        contextManager.setContextManagerListener(new DefaultContextManagerListener());
        tribesClusterManager.setContextManager(contextManager);
        return tribesClusterManager;
View Full Code Here

    protected ClusterManager getClusterManager(ConfigurationContext configCtx) {
        TribesClusterManager tribesClusterManager = new TribesClusterManager();
        tribesClusterManager.setConfigurationContext(configCtx);
        DefaultConfigurationManager configurationManager = new DefaultConfigurationManager();
        configurationManager.
                setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        tribesClusterManager.setConfigurationManager(configurationManager);
        DefaultContextManager contextManager = new DefaultContextManager();
        contextManager.setContextManagerListener(new DefaultContextManagerListener());
        tribesClusterManager.setContextManager(contextManager);
        return tribesClusterManager;
View Full Code Here

        clusterManager2.getContextManager().setConfigurationContext(configurationContext2);

        clusterManager1.getConfigurationManager().setConfigurationContext(configurationContext1);
        clusterManager2.getConfigurationManager().setConfigurationContext(configurationContext2);

        configManagerListener1 = new DefaultConfigurationManagerListener();
        clusterManager1.getConfigurationManager().setConfigurationManagerListener(configManagerListener1);
        configManagerListener2 = new DefaultConfigurationManagerListener();
        clusterManager2.getConfigurationManager().setConfigurationManagerListener(configManagerListener2);

        //giving both Nodes the same deployment configuration
        axisConfiguration1 = configurationContext1.getAxisConfiguration();
        serviceGroup1 = new AxisServiceGroup(axisConfiguration1);
View Full Code Here

            throws AxisFault {
        ClusterManager clusterManager = new TribesClusterManager();
        configCtx.getAxisConfiguration().setClusterManager(clusterManager);

        configManager.
                setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        clusterManager.setConfigurationManager(configManager);

        contextManager.setContextManagerListener(new DefaultContextManagerListener());
        clusterManager.setContextManager(contextManager);
View Full Code Here

        return contextManager;
    }

    protected ConfigurationManager getConfigurationManager() throws AxisFault {
        ConfigurationManager contextManager = new DefaultConfigurationManager();
        contextManager.setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        return contextManager;
    }
View Full Code Here

    protected ClusterManager getClusterManager(ConfigurationContext configCtx) {
        TribesClusterManager tribesClusterManager = new TribesClusterManager();
        tribesClusterManager.setConfigurationContext(configCtx);
        DefaultConfigurationManager configurationManager = new DefaultConfigurationManager();
        configurationManager.
                setConfigurationManagerListener(new DefaultConfigurationManagerListener());
        tribesClusterManager.setConfigurationManager(configurationManager);
        DefaultContextManager contextManager = new DefaultContextManager();
        contextManager.setContextManagerListener(new DefaultContextManagerListener());
        tribesClusterManager.setContextManager(contextManager);
        return tribesClusterManager;
View Full Code Here

    }

    //----------------------- default method implementations and common code -----------------------

    public void init(SynapseEnvironment synapseEnvironment) {
        ConfigurationContext cc =
                ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext();
        if (!initialized) {
            // The check for clustering environment
            ClusteringAgent clusteringAgent = cc.getAxisConfiguration().getClusteringAgent();
            if (clusteringAgent != null && clusteringAgent.getStateManager() != null) {
                isClusteringEnabled = Boolean.TRUE;
            } else {
                isClusteringEnabled = Boolean.FALSE;
            }
View Full Code Here

TOP

Related Classes of org.apache.axis2.clustering.configuration.DefaultConfigurationManagerListener

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.