Commit graph

2788 commits

Author SHA1 Message Date
viktorklang
bd0b4a149e Merge pull request #342 from jboner/wip-1850-update-forkjoin-√
Update to ForkJoin version as of 2012-02-21
2012-02-21 01:35:11 -08:00
Viktor Klang
8b10cd97d5 Updating to HOCON as of 2012-02-21 2012-02-21 09:55:49 +01:00
Viktor Klang
2bf95e15a8 Update to version as of 2012-02-21 2012-02-21 09:51:09 +01:00
viktorklang
1ea4dd210f Merge pull request #341 from jboner/wip-1851-AllForOne-∂π
remove termination-triggered slaughter, see #1851
2012-02-21 00:29:50 -08:00
viktorklang
6ad531a313 Merge pull request #340 from jboner/wip-1849-ActorSystem.isTerminated-∂π
add ActorSystem.isTerminated, see #1849
2012-02-20 13:06:21 -08:00
viktorklang
a0bb415393 Merge pull request #338 from jboner/wip-1845-monitor-typed-actors-√
Wip 1845 monitor typed actors √
2012-02-20 13:02:42 -08:00
Roland
9debd392b1 remove termination-triggered slaughter, see #1851 2012-02-20 21:01:48 +01:00
Roland
a5664a48e4 add ActorSystem.isTerminated, see #1849 2012-02-20 19:35:15 +01:00
Viktor Klang
d6ca3c9b5f Clarifying the need for Future.blocking 2012-02-20 16:37:14 +01:00
Viktor Klang
f8baf24e44 Merge branch 'master' of github.com:jboner/akka 2012-02-20 11:12:55 +01:00
Viktor Klang
69195dae1f Stab at rectifying the TypedActor Serialization issue 2012-02-20 11:06:12 +01:00
Roland Kuhn
ea45c8bdbb Merge pull request #334 from jboner/wip-system-and-routers-∂π
Wip system and routers ∂π
2012-02-20 01:59:32 -08:00
viktorklang
5e2b74bfe6 Merge pull request #328 from jboner/wip-1821-checked-exceptions-√
First stab, do we want to go for throws Throwable or even just switch to...
2012-02-19 13:49:56 -08:00
Viktor Klang
ff29498669 Adding support for Receiver and yanking out DeathWatcher 2012-02-19 22:28:54 +01:00
Viktor Klang
95b1590cd9 Adding support for DeathWatcher for TypedActors 2012-02-19 18:25:22 +01:00
viktorklang
cfb902a24c Merge pull request #330 from jboner/wip-1832-ecs-n-futures-√
Only aggregating callbacks for the same EC
2012-02-19 03:57:43 -08:00
Roland
62be4dafee fix Java API for creating SupervisorStrategy from array 2012-02-19 10:13:53 +01:00
Roland
b5826f9bd9 make LoggingReceiveSpec more robust 2012-02-18 22:32:41 +01:00
Roland
0f48b9f3eb make supervisorStrategy of Router configurable, see #1835
- also do not scrap router’s children upon restart
- and add docs and tests
2012-02-18 22:15:39 +01:00
Roland
c2376d01c0 explicitly set supervisorStrategy for both guardians, see #1839
also obtain them from a protected def to make them overridable in
subclasses
2012-02-18 12:46:42 +01:00
Roland
1589e1de9f make ActorSystem.shutdown() asynchronous, see #1840
- it was asynchronous by accident before, but should be explicitly so
2012-02-18 12:40:07 +01:00
Roland
c4705542dd improve Scaladoc of ActorContext.children 2012-02-18 12:33:32 +01:00
Viktor Klang
3a1cdab917 Adding union interfaces for ES and EC and E and adding tests to verify signatures 2012-02-16 17:24:08 +01:00
Viktor Klang
258d710dab Only aggregating callbacks for the same EC 2012-02-16 17:04:03 +01:00
Viktor Klang
e88f2bd936 First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions? 2012-02-16 12:31:49 +01:00
viktorklang
6af612153e Merge pull request #326 from waywardmonkeys/typos
Fix spelling errors.
2012-02-16 02:25:27 -08:00
Jonas Bonér
4923d9a1a8 Added copyright header.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-16 10:51:38 +01:00
Bruce Mitchener
3d90f480d0 Fix spelling errors. 2012-02-14 19:50:01 +07:00
Roland
c316cd4e0b don’t mask origin NPE when invoking actor 2012-02-13 22:54:06 +01:00
Roland
c59e1381ab update to latest config lib 2012-02-13 22:38:18 +01:00
Roland
2cf9353ca3 Merge branch 'master' of github.com:jboner/akka 2012-02-13 22:32:12 +01:00
Viktor Klang
8a20a37568 Nulling out the actor field when the actor terminates 2012-02-13 22:27:33 +01:00
Viktor Klang
68d0e2612d Performance optimization for BalancingDispatcher 2012-02-13 22:09:57 +01:00
Roland
d814de6c9f Merge branch 'master' of github.com:jboner/akka 2012-02-13 22:07:47 +01:00
Viktor Klang
060633331a Restoring the order of the universe 2012-02-13 22:07:12 +01:00
Roland
6fbcfe62af Merge branch 'master' of github.com:jboner/akka 2012-02-13 22:05:51 +01:00
Viktor Klang
4980118159 Renaming buddies to team and then optimized usage of the teamwork 2012-02-13 22:04:39 +01:00
Roland
e4aaae4d74 Merge branch 'master' of github.com:jboner/akka 2012-02-13 21:38:20 +01:00
Viktor Klang
0f314582b8 Sprinkling magic dust and webscale sauce 2012-02-13 21:37:30 +01:00
Roland
c0ec1b994f fix AddressExtractor (from URI) 2012-02-13 20:48:25 +01:00
Roland
11f067abfc fix DefaultResizer.pressure, make ResizerSpec less flaky
- also clean up left-over reference to “buddy-wakeup-threshold”
2012-02-13 20:42:14 +01:00
Viktor Klang
aef41fbef3 Merge branch 'master' into wip-1800-balancing-è 2012-02-13 18:18:29 +01:00
Viktor Klang
607ec4c2cf Switching approaches to check for max throttle 2012-02-13 18:14:35 +01:00
Roland
669a4ff9ca make unbalanced Address() constructor private, fix parsing, see #1806 2012-02-13 17:46:14 +01:00
Roland
7c57a9d60e final touch to actor start-up sequence
split systemDispatch(Create()) into systemEnqueue(Create()) directly
after createMailbox and registerForExecution from within
Dispatcher.attach() (resp. CallingThreadDispatcher.register() does its
own thing)
2012-02-13 15:33:31 +01:00
Roland
bb40c1ae30 tweak ResizerSpec to work better with async Resize(), see #1814
- previously relied on resize() being invoked before enqueueing to the
  mailbox, which is not at all guaranteed any longer.
2012-02-13 15:33:10 +01:00
Roland
251a7cc7e3 clean up BalancingDispatcher:
- change from messageQueue.numberOfMessages to maintaining an AtomicLong
  for performance reasons
- add comments/scaladoc where missing
- remove some assert()s
- fix ResiserSpec to employ buddy-wakeup-threshold
2012-02-13 12:38:59 +01:00
Roland
5a9ec45d01 first stab at balancing algorithm: it passes the tests
- add new config item "buddy-wakeup-threshold" which defaults to 5
- if BWT>=0, then check mailbox.numberOfMessages in case the target
  actor was not scheduled during dispatch and schedule a buddie if that
  is found >=BWT (BWT is a getfield)
- if during unregister() there are messages in the queue, schedule a
  buddie

This way people can tune which behavior they want, knowing full well
that numberOfMessages is O(n).
2012-02-10 22:22:09 +01:00
Roland
880f09be22 special start-up sequence for actors on BalancingDispatcher
Normally the ActorCell would register the actor with the dispatcher
(yeah, I moved it into the logical order, because the other one was
specifically done for BD but does not work out) and then dispatch the
Create() message. This does not work for BD, because then the actor
could potentiall process a message before Create() is enqueued, so
override systemDispatch() to drop Create() and insert that during
register() (which is called from attach()), making sure to achieve the
following order:

- enqueue Create()
- register with dispatcher
- add to buddies
- schedule mailbox
2012-02-10 21:29:11 +01:00
Roland
a2ef3eed7e scaffolding: make debug printout more useful, add assertions 2012-02-10 20:56:52 +01:00