Add distibuted action

- New module spring-statemachine-cluster which is
  based on spring-cloud-cluster to provide leader
  election.
- Ensemble now has a concept of a leader if implementation
  supports it.
- New DistributedLeaderAction can use leader info to execute
  action only on a leader.
- Tweak web sample with these new concepts.
- Fixes #176
This commit is contained in:
Janne Valkealahti
2016-03-28 10:44:48 +01:00
parent 89d183f91c
commit 6cce27e30b
23 changed files with 951 additions and 123 deletions

View File

@@ -56,7 +56,7 @@ project('spring-statemachine-samples-persist') {
project('spring-statemachine-samples-web') {
description = 'Spring State Machine Web Sample'
dependencies {
compile project(":spring-statemachine-zookeeper")
compile project(":spring-statemachine-cluster")
compile("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
compile("org.springframework.boot:spring-boot-starter-websocket:$springBootVersion")