Package org.broadinstitute.gatk.utils

Examples of org.broadinstitute.gatk.utils.MultiThreadedErrorTracker


        final MapResultsQueue<Integer> mapResultsQueue = new MapResultsQueue<Integer>();

        final List<List<MapResult<Integer>>> jobGroups = Utils.groupList(allJobs, groupSize);
        final ReduceSumTest reduce = new ReduceSumTest();
        final Reducer<Integer, Integer> reducer = new Reducer<Integer, Integer>(reduce, new MultiThreadedErrorTracker(), 0);

        final TestWaitingForFinalReduce waitingThread = new TestWaitingForFinalReduce(reducer, expectedSum(allJobs));
        final ExecutorService es = Executors.newSingleThreadExecutor();
        es.submit(waitingThread);
View Full Code Here


        es.awaitTermination(1, TimeUnit.HOURS);
    }

    @Test(timeOut = 1000, invocationCount = 100)
    private void testNonBlockingReduce() throws Exception {
        final Reducer<Integer, Integer> reducer = new Reducer<Integer, Integer>(new ReduceSumTest(), new MultiThreadedErrorTracker(), 0);
        final MapResultsQueue<Integer> mapResultsQueue = new MapResultsQueue<Integer>();
        mapResultsQueue.put(new MapResult<Integer>(0, 0));
        mapResultsQueue.put(new MapResult<Integer>(1, 1));

        final CountDownLatch latch = new CountDownLatch(1);
View Full Code Here

        es.awaitTermination(1, TimeUnit.HOURS);
    }

    @Test(timeOut = 10000, invocationCount = 100)
    private void testBlockingReduce() throws Exception {
        final Reducer<Integer, Integer> reducer = new Reducer<Integer, Integer>(new ReduceSumTest(), new MultiThreadedErrorTracker(), 0);
        final MapResultsQueue<Integer> mapResultsQueue = new MapResultsQueue<Integer>();
        mapResultsQueue.put(new MapResult<Integer>(0, 0));
        mapResultsQueue.put(new MapResult<Integer>(1, 1));

        final CountDownLatch latch = new CountDownLatch(1);
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.utils.MultiThreadedErrorTracker

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.