Package org.mule.impl

Examples of org.mule.impl.MuleDescriptor


public class NullUMOComponent implements UMOComponent
{
    private UMODescriptor descriptor;

    public NullUMOComponent(String name) {
        this.descriptor = new MuleDescriptor(name);
    }
View Full Code Here


                if ((i + 1) <= endpoints.length) {
                    out = endpoints[i + 1];
                } else {
                    break;
                }
                MuleDescriptor d = createDescriptor("benchmark" + j, in, out);
                builder.registerComponent(d);
                j++;
            }
        }
    }
View Full Code Here

        UMOEndpointURI inbound = null;
        UMOEndpointURI outbound = null;
        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) {
            d.setOutboundEndpoint(ConnectorFactory.createEndpoint(outbound, UMOEndpoint.ENDPOINT_TYPE_SENDER));
        }
        return d;
    }
View Full Code Here

TOP

Related Classes of org.mule.impl.MuleDescriptor

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.