Description
This is a GParas plugin for Griffon. This plugin allows you to use GPars (Groovy Parallel Systems - http://gpars.codehaus.org/) in your Griffon applications without need to manually download the GPars jar files.
The latest plugin version is 0.1
Dependencies
The gpars 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 GPars jar files in your app's lib folder. GPars is a Groovy concurrency library, which enables a couple of convenient DSLs and high-level concurrency constructs like actors, data-flow concurrency, map/reduce, fork/join, concurrent collection processing and more. Check out all the options at (http://gpars.codehaus.org/).
import static groovyx.gpars.actor.Actors.*
final def decryptor = actor {
loop {
react {String message->
reply message.reverse()
}
}
}
def console = actor {
decryptor.send 'suonorhcnysa si yvoorG'
react {
println 'Decrypted message: ' + it
}
}
console.join()
Configuration
The value specified for the gpars.poolsize system 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.1 |
12-21-09 |
Initial release |


