Commit graph

2681 commits

Author SHA1 Message Date
Roland Kuhn
12d4942853 merge Irmo's changes and add test case for whenUnhandled 2011-01-03 21:01:11 +01:00
Roland Kuhn
094b11cae3 remove one more allocation in hot path 2011-01-03 20:04:02 +01:00
momania
5094e87df7 Move handleEvent var declaration _after_ handleEventDefault val declaration. Using a val before defining it causes nullpointer exceptions... 2011-01-03 19:37:23 +01:00
Roland Kuhn
817395f454 change indentation to 2 spaces 2011-01-03 18:50:42 +01:00
momania
61b4ded1bd Removed generic typed classes that are only used in the FSM itself from the companion object and put back in the typed FSM again so they will take same types. 2011-01-03 12:03:38 +01:00
momania
80ac75ac38 fix tests 2011-01-03 11:40:04 +01:00
momania
9f664711c0 - make transition handler a function taking old and new state avoiding the default use of the transition class
- only create transition class when transition listeners are subscribed
2011-01-03 11:35:27 +01:00
momania
33a628a0d1 stop the timers (if any) while terminating 2011-01-03 11:12:40 +01:00
Roland Kuhn
227f2bb7c9 convert test to WordSpec with MustMatchers 2011-01-01 21:15:10 +01:00
Roland Kuhn
91e210ebbb fix fallout of Duration changes in STM tests
- document change in Java API
2011-01-01 21:12:12 +01:00
Roland Kuhn
6a672747b9 make TestKit assertions nicer / improve Duration 2010-12-31 17:57:08 +01:00
Roland Kuhn
da03c0552a remove unnecessary allocations in hot paths 2010-12-31 15:53:32 +01:00
Roland Kuhn
a45fc955e9 flesh out FSMTimingSpec
- add expectNoMsg and receiveWhile to TestKit
- add Ev(...) convenience extractor for FSM.Event
- switch to System.nanoTime for TestKit
2010-12-30 22:43:24 +01:00
Roland Kuhn
68c0f7c8e9 add first usage of TestKit
- rename expect... methods to expectMsg... to avoid clash with scalatest
- add access to testActor, e.g. for registration of that actor with
	others
- add facility for ignoring messages in testActor, which would only
	clutter the test spec
2010-12-29 21:47:05 +01:00
Roland Kuhn
e83ef89aad code cleanup (thanks, Viktor and Irmo) 2010-12-29 11:23:24 +01:00
Roland Kuhn
ab10f6c710 revamp TestKit (with documentation)
- add implicit wait bounding from within() blocks
- add class matching
- add test actor configuration and stop facilities
2010-12-28 23:51:41 +01:00
Roland Kuhn
b868c909e0 Improve Duration classes
- add more factories and implicits (for Double)
- add extractors for deconstruction and string parsing
- fix bug in infinite durations (comparisons were inverted)
2010-12-28 23:50:08 +01:00
Roland Kuhn
4838121d0e add facility for changing stateTimeout dynamically 2010-12-28 17:30:13 +01:00
Roland Kuhn
6a8b0e1d98 first sketch of basic TestKit architecture 2010-12-26 22:49:40 +01:00
Roland Kuhn
b04851b4c1 Merge remote branch 'origin/fsmrk2' into testkit
- fix up one implicits clash
2010-12-26 22:47:06 +01:00
Roland Kuhn
bdeef69b9a revamp akka.util.Duration
- add comparison and arithmetic
- add infinite subtypes
2010-12-26 17:32:32 +01:00
momania
d17519131e improved test - test for intial state on transition call back and use initialize function from FSM to kick of the machine. 2010-12-24 16:43:17 +01:00
momania
4ba3ed666b wrap stop reason in stop even with current state, so state can be referenced in onTermination call for cleanup reasons etc 2010-12-24 16:30:45 +01:00
Jonas Bonér
e8fcdd697b Updated the copyright header to 2009-2011 2010-12-22 15:35:50 +01:00
Viktor Klang
8a5fa56aa3 Closing ticket 541 2010-12-22 15:18:13 +01:00
Jonas Bonér
fc3b125171 removed trailing spaces 2010-12-22 10:23:58 +01:00
Jonas Bonér
cd27298fa8 Enriched TypedActorContext 2010-12-22 09:22:01 +01:00
Jonas Bonér
04c27b4048 Merge branch 'master' of github.com:jboner/akka 2010-12-22 08:09:58 +01:00
Jonas Bonér
11eb304a26 changed config element name 2010-12-22 08:07:26 +01:00
Peter Vlugter
5c241ae1f3 Throw runtime exception for @Coordinated when used with non-void methods 2010-12-22 13:15:23 +13:00
Jonas Bonér
251878b58c changed config for JMX enabling 2010-12-21 23:06:41 +01:00
Jonas Bonér
224d4dc94f added option to turn on/off JMX browsing of the configuration 2010-12-21 23:05:15 +01:00
Jonas Bonér
754dcc2f8c added option to turn on/off JMX browsing of the configuration 2010-12-21 22:59:40 +01:00
Jonas Bonér
5e29b8663a removed persistence stuff from config 2010-12-21 19:41:50 +01:00
Jonas Bonér
8dd5768321 Merge branch 'master' of github.com:jboner/akka 2010-12-21 17:41:31 +01:00
Jonas Bonér
f177c9f101 Fixed bug with not setting homeAddress in RemoteActorRef 2010-12-21 17:41:18 +01:00
Viktor Klang
f8703a813e Closing ticket #585 2010-12-21 14:45:45 +01:00
Roland Kuhn
993b60af35 add minutes and hours to Duration 2010-12-20 20:53:30 +01:00
Roland Kuhn
63617e1b71 add user documentation comments to FSM
- also remove checks from startWith again, but point users to initialize
2010-12-20 20:52:27 +01:00
Viktor Klang
06f230e7d4 Making sure RemoteActorRef.loader is passed into RemoteClient, also adding volatile flag to classloader in Serializer to make sure changes are propagated crossthreads 2010-12-20 11:21:23 +01:00
Viktor Klang
5624e6d3aa Giving all remote messages their own uuid, reusing actorInfo.uuid for futures, closing ticket 580 2010-12-20 11:01:25 +01:00
momania
acee86f9cd - merge in transition callback handling
- renamed notifying -> onTransition
- updated dining hakkers example and unit test
- moved buncher to fsm sample project
2010-12-20 10:40:23 +01:00
Viktor Klang
dbd8a60faf Adding debug log of parse exception in parseException 2010-12-20 10:34:59 +01:00
Viktor Klang
e481adb531 Adding UnparsableException and make sure that non-recreateable exceptions dont mess up the pipeline 2010-12-20 10:32:36 +01:00
Derek Williams
169975efdc Give modified configgy a unique version and add a link to the source repository 2010-12-19 16:40:51 -07:00
Peter Vlugter
bbb089f57c Refine transactor doNothing (fixes #582) 2010-12-20 11:11:52 +13:00
Roland Kuhn
716aab270f change ff=unix 2010-12-19 22:27:11 +01:00
Roland Kuhn
ec5be9b23b improvements on FSM
- change to akka.util.Duration
- add proper implicits to enable timeouts like "5 seconds"
- add concept of state timeouts, which are actually attached to states
- add timer handling for conveniently modeling timing irrespective of message "interruptions"
- add generic Buncher class as usage example and useful utility
2010-12-19 22:16:15 +01:00
Derek Williams
aa38fa9013 Remove workaround since Configgy has logging removed 2010-12-18 21:37:29 -07:00
Derek Williams
a6f1f7f08a Use new configgy 2010-12-18 21:36:28 -07:00