Commit graph

7650 commits

Author SHA1 Message Date
Jonas Bonér
70f2bec38c Merge pull request #99 from amir343/master
Some formatting changes in STM doc page
2011-10-26 05:29:53 -07:00
Amir Moulavi
037dcfa024 Conversion of class names into literal blocks 2011-10-26 14:22:16 +02:00
Roland
3b62873e2c fix CallingThreadDispatcher’s assumption of mailbox type
- usually it’s a CallingThreadMailbox, but
- it is swapped out for deadLetter upon stop()
- so use Option[CallingThreadMailbox]
2011-10-26 14:20:02 +02:00
Amir Moulavi
b5a4018813 Formatting of TransactionFactory settings is changed to be compatible with Configuration section 2011-10-26 13:58:07 +02:00
Jonas Bonér
a25452126d Added 'Intro' section to new cluster specification/docs. Also minor other edits.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-26 13:55:22 +02:00
Jonas Bonér
ba365f8658 Merge branch 'master' of github.com:jboner/akka 2011-10-26 13:37:51 +02:00
Jonas Bonér
12554cd50f Added some sections to new clustering specification and also did various reformatting, restructuring and improvements.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-26 12:23:19 +02:00
Peter Vlugter
a8c7bd5a23 Defer a latch count down in transactor spec 2011-10-26 11:18:29 +02:00
Jonas Bonér
a857078907 Renamed RemoteDaemon.scala to Remote.scala.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-26 08:58:20 +02:00
Jonas Bonér
80282d1f1d Initial version of gossip based cluster membership.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-26 08:48:16 +02:00
Jonas Bonér
258279748a Merge pull request #98 from amir343/master
Some formatting correction in TypedActors doc page
2011-10-25 07:31:49 -07:00
Peter Vlugter
80250cd884 Some docs for new clustering 2011-10-25 16:28:12 +02:00
Roland
173ef048ce add dispatcher.shutdown() at app stop and make core pool size smaller to let the tests run 2011-10-25 15:08:44 +02:00
Roland
6bcdba40c0 fix InterruptedException handling in CallingThreadDispatcher
instead of just re-setting the flag upon swallowed exception, clear the
flag when fully done and re-throw last swallowed IE.
2011-10-25 15:07:20 +02:00
Amir Moulavi
ef0491f6de Class names and types in the text are converted into literal blocks 2011-10-25 13:34:28 +02:00
Amir Moulavi
314c9fc1d4 broken bullet list is corrected 2011-10-25 13:09:54 +02:00
Amir Moulavi
dd1d71267b broken bullet list is corrected 2011-10-25 13:07:52 +02:00
Roland
c059d1bc11 Merge branch 'parental-supervision'
commented out one failing test in LoggingReceiveSpec (known, to be fixed
soon by implementing MainBusLogging)
2011-10-25 12:24:39 +02:00
Roland
c54e7b2a28 add pimp for Future.pipeTo(Channel), closes #1235
cherry-picked from release-1.3

The ticket contains more methods around this issue, both on Actor and
Future itself, but I think it is better to provide the basic primitive
in a way which does not further couple Future and Actor. Will need to be
revisited for 2.0.
2011-10-25 11:48:27 +02:00
Roland
3e3f5320f6 document anonymous actors and their perils, fixes #1242
cherry-picked from release-1.3
2011-10-25 11:48:21 +02:00
Roland
676a712ceb remove all use of Class.getSimpleName; fixes #1288
cherry-picked from release-1.3
2011-10-25 11:48:04 +02:00
Roland
076ec4d0a0 add missing .start() to testing.rst, fixes #1266
cherry-picked from release-1.3
2011-10-25 11:47:45 +02:00
viktorklang
33bcb38fcd Merge pull request #96 from amir343/master
A typo is corrected in Future example Scala code, by Amir!
2011-10-24 02:00:49 -07:00
Viktor Klang
f762575349 #1109 - Fixing some formatting and finding that Jonas has already fixed this 2011-10-23 00:58:02 +02:00
Viktor Klang
e1a3c9dff5 #1059 - Removing ListenerManagement from RemoteSupport, publishing to AkkaApplication.eventHandler 2011-10-23 00:40:09 +02:00
Roland
b39bef69ec Fix bug in DeathWatchSpec (I had forgotten to wrap a Failed) 2011-10-21 19:07:17 +02:00
Roland
92321cd498 relax over-eager time constraint in FSMTimingSpec 2011-10-21 18:51:54 +02:00
Roland
fc8ab7dad8 fix CallingThreadDispatcher and re-enable its test 2011-10-21 18:47:44 +02:00
Roland
bb942750aa make most AkkaSpec-based tests runnable in Eclipse 2011-10-21 17:01:22 +02:00
Amir Moulavi
4638f834e3 A typo is corrected in Future example Scala code 2011-10-21 16:14:37 +02:00
Viktor Klang
bb0b845607 Preparing to remove channels and ActorPromise etc 2011-10-21 15:51:38 +02:00
Roland
d55f02e6c1 merge master into parental-supervision, fixing up resulting breakage 2011-10-21 15:11:43 +02:00
Viktor Klang
9dd0385301 Moving postMessageToMailbox* to ScalaActorRef for some additional shielding. 2011-10-21 14:00:55 +02:00
Peter Vlugter
52595f3692 Fix the scaladoc generation again so that nightlies work 2011-10-21 10:19:04 +02:00
Patrik Nordwall
550ed58bf7 Included akka-sbt-plugin in build, since I need timestamped version to be published 2011-10-21 08:53:00 +02:00
Roland
3b698b9470 nearly done, only two known test failures
- moved typed actor factories to app/context (like actor factories)
- fixed a few misplaced supervision changes, all such tests green now
- actually test akka-reference.conf in ConfigSpec
- made DispatcherActorSpec more deterministic (failed intermittently
  here, was due to race towards thread pool)
- wrapped all actor initialization failures into
  ActorInitializationException and made sure that this leads to Stop
- default to Stop on ActorKilledException
- fixed ActorModelSpec to separately supervise the “waves of actors”
  because otherwise the app.guardian is way too busy processing all
  those ChildTerminated messages
- change ActorCell._children from Vector[Stats] to TreeMap[ActorRef,
  Stats] for performance reasons, have not measured memory impact, yet
- ensured that InterrupedException does not leave current thread via
  Failed message to supervisor (wrapped in ActorInterruptedException)
- set core-size=1 and max-size=4 for default dispatcher during test
2011-10-20 23:37:54 +02:00
Roland
172ab31f2a improve some, but tests are STILL FAILING
- AkkaApplication.stop() will stop the guardian; when that stops, it
  will send ChildTerminated to the BubbleWalker, who will then complete
  a Promise
- AkkaApplication.terminationFuture is that Promise and available for
  registration of onComplete callback, used now to shutdown the
  Scheduler
- AkkaSpec extends BeforeAndAfterAll and uses that to call app.stop(),
  exposing atStartup() and atTermination() overridable hooks
- fixed some tests
2011-10-20 20:45:02 +02:00
Jonas Bonér
10fc175c09 Removed reference to non-committed code 2011-10-20 15:40:05 +02:00
Jonas Bonér
303d34692d Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-20 15:11:34 +02:00
Viktor Klang
e0a7b88fc5 Adding Actor.watch and Actor.unwatch - verrrry niiiice 2011-10-20 13:56:57 +02:00
Roland
25f436d521 add TestKit.fishForMessage 2011-10-20 13:43:24 +02:00
Viktor Klang
6a2f203d26 Rewriting DeathWatchSpec and FSMTransitionSpec to do the startsMonitoring inside the Actor 2011-10-20 11:46:13 +02:00
Viktor Klang
4fc108027e I've stopped hating Jenkins, fixed the pesky elusing DeathWatch bug 2011-10-19 23:21:06 +02:00
Viktor Klang
bf4af15817 Making the DeadLetterActorRef push notifications to the EventHandler 2011-10-19 22:38:35 +02:00
Viktor Klang
57e994386d Making sender always return an ActorRef, which will be the DeadLetterActor if there is no real sender 2011-10-19 22:20:53 +02:00
Viktor Klang
adccc9b89b Adding possibility to specify Actor.address to TypedActor 2011-10-19 18:23:39 +02:00
Viktor Klang
70bacc4c3d Fixing yet another potential race in the DeathWatchSpec 2011-10-19 18:23:23 +02:00
Viktor Klang
83e17aa8ea Removing the 'def config', removing the null check for every message being processed and adding some TODOs 2011-10-19 17:48:27 +02:00
Roland
d3837b9fc3 Introduce parental supervision, BUT TESTS ARE STILL FAILING
- every actor is now supervised, where the root of the tree is
  app.guardian, which has its supervisor field set to a special ActorRef
  obtained from provider.theOneWhoWalksTheBubblesOfSpaceTime (this name
  is meant to indicate that this ref is outside of the universe, cf.
  Michio Kaku)
- changed all tests to obtain specially supervised children (i.e. not
  top-level) via (supervisor ? Props).as[ActorRef].get
- add private[akka] ScalaActorRef.sendSystemMessage for sending
  Supervise()
- everything routing or remote is broken wrt. supervision, as that was
  not “properly” implemented to begin with, will be tackled after
  app/supervision/eventbus/AkkaSpec are stabilized enough
2011-10-19 17:18:50 +02:00
Viktor Klang
f68c170ba8 Removing senderFuture, in preparation for 'sender ! response' 2011-10-19 17:11:09 +02:00