Examples of InVMCourier


Examples of org.jboss.internal.soa.esb.couriers.InVMCourier

        InVMEpr epr = new InVMEpr(new URI("invm://serviceid4"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
       
        InVMCourier courier = new InVMCourier(epr);
        Consumer consumer = new Consumer(courier);

        consumer.start();

        try {
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.InVMCourier

    public void testTemporaryLockstepDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid5?true#2000"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);

        consumer.start();
        producer.start();
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.InVMCourier

    public void testTemporaryPassByValueDeliver() throws Exception {
        InVMEpr epr = new InVMEpr(new URI("invm://serviceid5/true?true#2000"));
        epr.setTemporaryEPR(true) ;
        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        InVMCourier courier = new InVMCourier(epr);
        Producer producer = new Producer(courier);
        Consumer consumer = new Consumer(courier);

        consumer.start();
        producer.start();
View Full Code Here

Examples of org.jboss.internal.soa.esb.couriers.InVMCourier

        Assert.assertEquals("Ordered entry size", 0, InVMTemporaryTransport.getInstance().getOrderedEntriesSize()) ;
        Assert.assertEquals("Service id size", 0, InVMTemporaryTransport.getInstance().getServiceIdToEntrySize()) ;
        int iters = 1000;
        int numberOfProducers = 50;
        Producer[] producer = new Producer[numberOfProducers];
        InVMCourier courier = new InVMCourier(epr);
        Consumer consumer = new Consumer(courier, iters * numberOfProducers,
                false);
        long stime = System.currentTimeMillis();

        for (int i = 0; i < numberOfProducers; i++)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.