Package groovyx.gpars.scheduler

Examples of groovyx.gpars.scheduler.FJPool


    public int totalMessages() {
        return repeat;
    }

    public long timeThroughput(final int reps, final int numberOfClients) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, InterruptedException {
        group = new DefaultPGroup(new FJPool(maxClients));
        repeatsPerClient = repeat / numberOfClients;//MESSAGE quota for each pair of actors

        long totalTime = 0L;
        for (int i = 0; i < reps; i++) {
View Full Code Here


    }

    private void setupLatencyBenchmark(final int numberOfClients) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {

        totalDuration = 0L;
        group = new DefaultPGroup(new FJPool(maxClients));
        latch = new CountDownLatch(numberOfClients);
        repeatsPerClient = repeat / numberOfClients;
        clients = new ArrayList<Actor>();

        for (int i = 0; i < numberOfClients; i++) {
View Full Code Here

     *
     * @param pool The pool to wrap by the new group
     * @return The group wrapping the original pool
     */
    public static PGroup createFromPool(final ForkJoinPool pool) {
        return new DefaultPGroup(new FJPool(pool));
    }
View Full Code Here

TOP

Related Classes of groovyx.gpars.scheduler.FJPool

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.