Package org.mule.config

Examples of org.mule.config.ThreadingProfile


    }

    protected void init() throws UMOException {
        QuickConfigurationBuilder builder = new QuickConfigurationBuilder(true);
        builder.setModel(config.getModel());
        ThreadingProfile tp = new ThreadingProfile(config.getConnectorThreads(), config.getConnectorThreads(), -1, (byte) 2, null, null);
        MuleManager.getConfiguration().setMessageReceiverThreadingProfile(tp);
        MuleManager.getConfiguration().setMessageDispatcherThreadingProfile(tp);

        UMOManager manager = builder.createStartedManager(config.isSynchronous(), "");
        manager.stop();
View Full Code Here


        if (in != null) inbound = new MuleEndpointURI(in);
        if (out != null) outbound = new MuleEndpointURI(out);

        MuleDescriptor d = new MuleDescriptor(name);
        d.setImplementation(BenchmarkComponent.class.getName());
        d.setThreadingProfile(new ThreadingProfile(config.getThreads(), config.getThreads(), -1, (byte) 4, null, null));
        d.setQueueProfile(new QueueProfile(config.getQueue(), false));
        d.setPoolingProfile(new PoolingProfile(config.getThreads(), config.getThreads(), 0, (byte) 2, PoolingProfile.POOL_INITIALISE_ALL_COMPONENTS));
        d.setInboundEndpoint(ConnectorFactory.createEndpoint(inbound, UMOEndpoint.ENDPOINT_TYPE_RECEIVER));

        if (outbound != null) {
View Full Code Here

TOP

Related Classes of org.mule.config.ThreadingProfile

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.