Commit graph

8074 commits

Author SHA1 Message Date
Viktor Klang
519aa39f18 Removing 1-entry lists 2011-12-08 15:03:23 +01:00
Viktor Klang
6cdb0126ad Removing HotSwap and revertHotSwap 2011-12-08 14:44:18 +01:00
Viktor Klang
4803ba517c Making sure that it doesn't break for the dlq itself 2011-12-07 16:38:09 +01:00
Viktor Klang
b6f89e3cd2 Merge branch 'master' of github.com:jboner/akka 2011-12-07 15:52:24 +01:00
Viktor Klang
72d69cb7cc Moving all the logic for cleaning up mailboxes into the mailbox implementation itself 2011-12-07 15:51:46 +01:00
Roland
5fc9eb2061 fix failing ActorLookupSpec: implied synchronicity in AskActorRef.whenDone which does not exist 2011-12-07 15:01:58 +01:00
viktorklang
bf3ce9bb87 Merge pull request #138 from jboner/wip-reset_behaviors_on_restart
#1429 - reverting hotswap on restart and termination
2011-12-07 05:23:00 -08:00
Patrik Nordwall
81492ce84b Changed to Debug log level on some shutdown logging 2011-12-07 14:08:20 +01:00
Patrik Nordwall
2721a879c2 Use Config in benchmarks 2011-12-07 14:08:20 +01:00
Viktor Klang
119ceb0278 Since there is no user API for remoting anymore, remove the old docs 2011-12-07 13:40:29 +01:00
Viktor Klang
5c3c24bc58 Merge branch 'master' of github.com:jboner/akka 2011-12-07 13:37:05 +01:00
Viktor Klang
2872d8b987 #1339 - adding docs to testing.rst describing how to get testActor to be the implicit sender in TestKit tests 2011-12-07 13:36:53 +01:00
Viktor Klang
4084c017a3 Adding docs to clarify that restarting resets the actor to the original behavior 2011-12-07 13:30:56 +01:00
Viktor Klang
cde4576cc7 #1429 - reverting hotswap on restart and termination 2011-12-07 13:04:44 +01:00
Roland
75c8ac33b4 make next state’s data available in onTransition blocks, fixes #1422
cherry-picked from release-1.3
2011-12-07 11:59:04 +01:00
Viktor Klang
7351523585 Merge branch 'master' of github.com:jboner/akka 2011-12-07 11:51:40 +01:00
Roland
a0a44abe0d add and verify Java API for actorFor/ActorPath, fixes #1343 2011-12-07 11:42:44 +01:00
Viktor Klang
50febc5c5a Merge branch 'master' of github.com:jboner/akka 2011-12-07 11:38:51 +01:00
Patrik Nordwall
56dc18106b ActorContext instead of ActorRef in HotSwap code parameter. See #1441 2011-12-07 11:25:35 +01:00
Viktor Klang
aa9b077657 Adding support for range-based setting of pool sizes 2011-12-07 11:25:27 +01:00
Patrik Nordwall
f7d6393027 Removed actorOf methods from AkkaSpec. See #1439 2011-12-07 11:10:54 +01:00
Patrik Nordwall
eb61173ff9 API doc clarification of context and getContext 2011-12-07 10:47:07 +01:00
patriknw
87fc7ea536 Merge pull request #136 from jboner/wip-1377-context-patriknw
Cleanup of methods in Actor and ActorContext trait. See #1377
2011-12-07 01:10:27 -08:00
Patrik Nordwall
9c73c8eac3 Merge branch 'master' into wip-1377-context-patriknw 2011-12-07 10:08:17 +01:00
Patrik Nordwall
1402c7692e Minor fixes from review comments. See #1377 2011-12-07 10:07:46 +01:00
Roland
0f922a39ab fix ordering issue in ActorLookupSpec
There is no guarantee concerning the order in which children are
traversed during an ActorSelection send operation.
2011-12-07 08:46:40 +01:00
Patrik Nordwall
1a93ddb7c0 Merge branch 'master' into wip-1377-context-patriknw 2011-12-07 08:07:58 +01:00
Patrik Nordwall
bfa14a692c Merge branch 'master' into wip-1377-context-patriknw
Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorCell.scala
	akka-actor/src/main/scala/akka/actor/ActorRef.scala
	akka-actor/src/main/scala/akka/dispatch/AbstractDispatcher.scala
	akka-actor/src/main/scala/akka/event/EventStream.scala
	akka-tutorials/akka-tutorial-first/src/main/java/akka/tutorial/first/java/Pi.java
	akka-tutorials/akka-tutorial-first/src/main/scala/Pi.scala
2011-12-07 07:49:34 +01:00
Roland
d8ede288d7 improve ScalaDoc of actorOf methods (esp. their blocking on ActorSystem) 2011-12-06 23:09:29 +01:00
Roland
c4ed57100e make Jenkins wait for Davy Jones
- AkkaSpecSpec failed with nothing in the locker, but only on Jenkins
- cause: Davy Jones doesn’t get a chance to run because nobody actually
  waits for his processing
- thus, give him permission to leave this world and have him confirm
  that
2011-12-06 22:50:19 +01:00
Roland
a1d8f30669 fix bug in creating anonymous actors
- when no name was given, it resulted in a simple call to the provider
- which is completely the wrong thing to do in case of ActorSystem
- so, introduce CreateRandomNameChild op for guardians and use that
2011-12-06 21:34:29 +01:00
Roland
831b3272ad add min/max bounds on absolute number of threads for dispatcher
The reason for the previously failing test case was that Jenkins has
only two (logical) cores and the test config sets the
core-pool-size-factor to 2, meaning four threads. This is not enough to
have four Futures waiting (as per the test) and one actor which actually
does the work (the guardian in this case). Hence, make it so that
core-pool-size-min gives the absolute minimum and set the default of
that to eight.

While doing so I cleaned up the MessageDispatcherConfigurator to not use
HOF since now configuration items are not optional anymore, yielding a
flow which is much more readily understandable.
2011-12-06 20:39:26 +01:00
Jonas Bonér
f7f36ac98c Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-06 17:29:21 +01:00
Roland
d6fc97c48d introduce akka.actor.creation-timeout to make Jenkins happy
- I had reused akka.actor.timeout for ActorSystem.actorOf calls (which
  “ask” the guardian to create the actor), but 5sec proved too short for
  Jenkins
- CreationTimeout defaults to 30sec now, let’s hope Jenkins is not
  slower than _that_.
2011-12-06 16:36:49 +01:00
Jonas Bonér
05da3f3321 Minor formatting, docs and logging edits.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-06 15:27:10 +01:00
Roland
66c1d62a51 Merge branch 'wip-ActorPath-rk' 2011-12-06 15:12:09 +01:00
Jonas Bonér
29dd02bf9b Merge branch 'master' of github.com:jboner/akka 2011-12-06 14:54:06 +01:00
Viktor Klang
96182885c2 #1437 - Replacing self with the DeadLetterActorRef when the ActorCell is shut down, this to direct captured self references to the DLQ 2011-12-06 11:28:29 +01:00
Patrik Nordwall
7595e52bc9 Renamed startsWatching to watch, and stopsWatching to unwatch 2011-12-06 09:59:52 +01:00
Patrik Nordwall
3204269f6a Cleanup of methods in Actor and ActorContext trait. See #1377
* Added JavaActorContext, UntypedActor.getContext
* implicit val context in Actor needs to be implicit to support forward,
it would be nice if it wasn't implicit because now I can't override context
in UntypedActor
* Removed implicit def system in Actor
* Removed implicit def defaultTimeout in Actor
* Removed receiveTimeout, children, dispatcher, become, unbecome, watch,
unwatch in Actor
* Removed corresponding as above from UntypedActor
* Removed implicit from dispatcher in ActorSystem
* Removed implicit def timeout in TypedActor
* Changed receiveTimeout to use Duration (in api)
* Changed many tests and samples to match new api
2011-12-06 09:50:16 +01:00
Roland
b2a8e4ccae document requirements of our Scheduler service 2011-12-06 09:27:32 +01:00
Roland
9d7597c728 Merge branch master into wip-ActorPath-rk
Had to make Davy Jones a bit more robust, i.e. put him into a different
system to guarantee survival until all messages are delivered.
2011-12-05 22:46:34 +01:00
Roland
82dc4d67c9 fix remaining review comments 2011-12-05 21:43:58 +01:00
Roland
cdc5492101 correct spelling of Davy Jones 2011-12-05 21:03:05 +01:00
Roland
c0c9487451 make testActor spew out uncollected messages after test end
(so you don’t need expectNoMsg after tests)
2011-12-05 19:03:01 +01:00
Roland
d2cffe7e33 do not use the only two special characters in Helpers.base64
If automatically generated names contains * and ?, they might do
something strange when being looked up. There was no real issue with our
current tests, but I just want to avoid the issue.
2011-12-05 18:23:49 +01:00
Roland
3c06992d2e incorporate review comments 2011-12-05 17:31:54 +01:00
Roland
13eb1b6c8b replace @volatile for childrenRefs with mailbox status read for memory consistency 2011-12-05 16:18:56 +01:00
Roland
0b5f8b083d rename ActorPath.{pathElemens => elements} 2011-12-05 15:57:43 +01:00
Roland
eeca88d674 add test for “unorderly” shutdown of ActorSystem by PoisonPill
- uncovered nasty endless loop bug wrt. dead letters and a dead listener
- fixing that bug removed the MainBusReaper (sigh)
- also fix compilation of tutorial-first, but that REALLY needs to be
  changed not to create RoutedActorRef using new!
2011-12-05 15:18:22 +01:00