Skip to end of metadata
Go to start of metadata

Description

This is a GParallelizer plugin for Griffon. This plugin allows you to use GParallelizer (http://code.google.com/p/gparallelizer/) in your Griffon applications without need to manually download GParalelizer jar files.

The latest plugin version is 0.3

Dependencies

The gparallelizer plugin has no other dependencies. If it cannot run out-of-the box, please report in the Griffon user group.

Installation

Type this command in your Grail application directory

or if you have a plugin archive locally.

Getting started

This plugin installs the GParallelizer jar files in your app's lib folder. GParallelizer is a Groovy concurrency library, which enables a couple of convenient DSLs and high-level concurrency constructs like actors, data-flow concurrency, concurrent collection processing and more. Check out all the options at (http://code.google.com/p/gparallelizer/).

import static org.gparallelizer.actors.pooledActors.PooledActors.*
final def decryptor = actor {
    loop {
        react {String message->
            reply message.reverse()
        }
    }
}.start()

def console = actor {
    decryptor.send 'suonorhcnysa si yvoorG'
    react {
        println 'Decrypted message: ' + it
    }
}.start()

console.join()

Configuration

The value specified for the gparallelizer.poolsizesystem property will be used for the default thread pool size. If the system property has not been set, a reasonable default based on the number of detected CPU cores will be used.

History

Version

Date

Notes

0.3

09-21-09

Updated to GParallelizer 0.8.4

0.2

08-05-09

Updated to GParallelizer 0.8.1

0.1

07-28-09

Initial release

  • No labels