Package org.mule.config

Examples of org.mule.config.ClusterConfiguration


    public void overriddenClusterConfiguration() throws Exception
    {
        final int clusterNodeId = 22;
        final String clusterId = "some-id";
        MuleContext context = new DefaultMuleContextFactory().createMuleContext();
        context.getRegistry().registerObject(MuleProperties.OBJECT_CLUSTER_CONFIGURATION, new ClusterConfiguration()
        {
            @Override
            public String getClusterId()
            {
                return clusterId;
View Full Code Here


        return startLatch.await(timeout, TimeUnit.MILLISECONDS);
    }

    private void overrideClusterConfiguration()
    {
        ClusterConfiguration overriddenClusterConfiguration = getRegistry().get(MuleProperties.OBJECT_CLUSTER_CONFIGURATION);
        if (overriddenClusterConfiguration != null)
        {
            this.clusterConfiguration = overriddenClusterConfiguration;
        }
    }
View Full Code Here

TOP

Related Classes of org.mule.config.ClusterConfiguration

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.