Commit graph

1083 commits

Author SHA1 Message Date
Roland
b60210362e make system.actorOf() non-blocking (and working), see #2031
- introducing RepointableActorRef, which starts out with an
  UnstartedActorCell which can cheaply be created; the Supervise()
  message will trigger child.activate() in the supervisor, which means
  that the actual creation (now with normal ActorCell) happens exactly
  in the right place and with the right semantics. Messages which were
  enqueued to the dummy cell are transferred atomically into the
  ActorCell (using normal .tell()), so message sends keep working
  exactly as they used to
- this enables getting rid of the brittle synchronization around
  RoutedActorRef by replacing that one with a RepointableActorRef
  subclass which creates RoutedActorCells upon activate(), with the nice
  benefit that there is no hurry then to get it right because the new
  cell is constructed “on the side”

misc fixes:

- InvalidMessageException is now actually enforced when trying to send
  “null”
- Mailboxes may be created without having an ActorCell, which can come
  in handy later, because the cell is only needed when this mailbox is
  going to be scheduled on some executor
- remove occurrences of Props(), which is equivalent to Props[Nothing],
  which is equivalent to «bug»
- add test case which verifies that context.actorOf is still synchronous
- plus all the stuff I have forgotten.
2012-06-13 17:57:56 +02:00
Patrik Nordwall
f6365e83e7 Change to logback 1.0.4, see #2198 2012-06-07 20:40:14 +02:00
viktorklang
ab7c3eb27b Merge pull request #520 from akka/wip-2183-assorted-fixes-∂π
Wip 2183 assorted fixes ∂π
2012-06-07 04:34:06 -07:00
viktorklang
e8e0ef83bb Merge pull request #518 from akka/wip-2189-remote-deadletters-√
#2189 - Removing RemoteClientWriteFailed and log it as a RemoteClientErr...
2012-06-07 04:25:18 -07:00
Roland
bff03676fe add java testing doc chapter and link to Munish’s blog 2012-06-07 10:50:13 +02:00
viktorklang
60c11cab7b Adding missing slash 2012-06-07 00:46:01 +03:00
Viktor Klang
211435048a #2189 - Removing RemoteClientWriteFailed and log it as a RemoteClientError and send the message to DeadLetters 2012-06-06 13:56:46 +02:00
Roland
d56c0b4b34 update ActorPath.png, see #2147 2012-06-05 13:07:01 +02:00
viktorklang
9581ec8403 Merge pull request #511 from akka/wip-2134-deathwatch2.0-√
Wip 2134 deathwatch2.0 √
2012-06-05 03:33:01 -07:00
Roland
0a011ee50e fix a few doubled the’s 2012-06-04 23:35:52 +02:00
Roland
b98fb0e37a clarify deployment using anonymous factories 2012-06-04 23:10:03 +02:00
Roland Kuhn
9b88cf75bf Merge pull request #509 from akka/wip-2174-testkit-trait-∂π
offer TestKitBase trait, see #2174
2012-06-04 10:29:35 -07:00
Roland
b840624b78 warn against using TestKitBase trait 2012-06-04 19:28:58 +02:00
Viktor Klang
a5127b12dd Merge branch 'master' into wip-2134-deathwatch2.0-√ 2012-06-04 13:58:09 +02:00
Roland
df479a0bf0 add back TestProbe.reply, see #2172 2012-06-04 11:29:56 +02:00
Jonas Bonér
e7cf92e72a Merge pull request #506 from akka/wip-2161-test-leave-the-cluster-gracefully-jboner
Added implementation of the LEAVE command for a cluster node plus misc tests
2012-06-04 01:39:22 -07:00
Roland
de59444795 offer TestKitBase trait, see #2174 2012-06-04 10:03:41 +02:00
Viktor Klang
17ee47079a Incorporating Roland's feedback 2012-06-02 14:49:28 +02:00
Viktor Klang
12b9af25cf #2168 - Exposing more Netty options in remtoe config 2012-06-01 21:29:47 +02:00
Jonas Bonér
0449f85a86 Added implementation of the LEAVE command for a cluster node.
* Added implementation of the LEAVE command for a cluster node
* Changed the meaning of Member.isUnavailable to only DOWN and REMOVED
* Removed EXIT and UP as user commands
* Fixed Cluster.self to fall back to checking for itself in the gossip.overview.unreachable set.
* Added Leader action transitioning from LEAVING -> EXITING
* Improved comments

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:49:50 +02:00
Brian Scully
6a415f0e9b * Add Circuit Breaker to akka.pattern for general use. Circuit breaker implementation as described by Michael T. Nygard in Release It!. Fixes #1734
* Uses finite state machine for three states: Closed, Open, Half-Open
    * Closed state allows calls through, and on sequential failures exceeding the max# set - transitions to Open state. Intervening successes cause the failure count to reset to 0
    * Open state throws a CircuitOpenException on every call until the reset timeout is reached which causes a transition to Half-Open state
    * Half-Open state will allow the next single call through, if it succeeds - transition to Closed state, if it fails - transition back to Open state, starting the reset timer again
  * Allow configuration for the call and reset timeouts, as well as the maximum number of sequential failures before opening
  * Supports async or synchronous call protection
  * Callbacks are supported for state entry into Closed, Open, Half-Open.  These are run in the supplied execution context
  * Both thrown exceptions and calls exceeding max call time are considered failures
  * Uses akka scheduler for timer events
  * Integrated into File-Based durable mailbox
  * Sample documented for other durable mailboxes
2012-06-01 08:24:47 -04:00
Viktor Klang
3b06c0a7c2 Merge branch 'master' of github.com:akka/akka 2012-05-31 22:00:32 +02:00
Viktor Klang
fca5b9afbd #2166 - Adding link to Kryo serialization by Roman Levenstein 2012-05-31 21:58:24 +02:00
viktorklang
3a565c6c53 Merge pull request #499 from akka/wip-2117-singleton-cluster-patriknw
Singleton cluster convergence, see #2117
2012-05-31 12:35:16 -07:00
viktorklang
346f8be047 Correcting typo 2012-05-31 21:14:43 +03:00
viktorklang
27dbe85a70 Correcting typo 2012-05-31 21:14:19 +03:00
Patrik Nordwall
9d1cbdc601 Singleton cluster convergence, see #2117 2012-05-31 14:48:12 +02:00
Viktor Klang
90344b657e Removing doc references to onResult and onTimeout 2012-05-30 23:32:22 +02:00
Viktor Klang
4bb1a40581 Resolve conflict 2012-05-29 13:03:16 +02:00
Viktor Klang
d1e8fb0b9a Update docs to reflect that there isn't 0 deps for akka-actor 2012-05-29 09:06:03 +02:00
Viktor Klang
96f264e842 Initial stab at DeathWatch 2.0, tests don't pass just yet 2012-05-28 16:49:49 +02:00
viktorklang
2e8d6a8458 Merge pull request #460 from gertv/master
Proposed fix for #1812
2012-05-28 02:53:32 -07:00
Björn Antonsson
5fd1aad0d0 added docs about BalancingDispatcher and routers, see #2080 2012-05-28 10:33:59 +02:00
Roland
0a09cfc893 kick off pattern collection 2012-05-27 14:18:35 +02:00
Roland
e748da6f49 improve one word, see #2131 2012-05-25 18:17:13 +02:00
Roland
178c9145fe document creator requirement, see #2131 2012-05-25 18:17:13 +02:00
Viktor Klang
021d7fcfeb #2136 - Making it possible to use balancing dispatcher for routees but not routers, changing the docs and updating the tests 2012-05-25 17:42:12 +02:00
Roland
24f6406634 fix specs2 samples so they system.shutdown 2012-05-25 14:42:39 +02:00
Viktor Klang
dc17bba62f Removing warning from serialization.rst by adding whitespace, thanks reST. 2012-05-25 14:33:28 +02:00
Viktor Klang
fdd4a85ab0 Adding docs about creating TypedActor children 2012-05-25 00:49:45 +02:00
Gert Vanthienen
2e4f01b612 Inadventently deleted akka-intellij-code-style.jar 2012-05-24 23:39:13 +02:00
Gert Vanthienen
e24f7077ec Merge with latest changes on akka/master and simplify OSGi configuration section
Conflicts:
	project/AkkaBuild.scala
2012-05-24 23:34:20 +02:00
Roland
dd30e81a1a document Specs2 + TestKit, see #2068, plus fix up broken includes
- include move of doc samples out of akka package also in the
  includecode directives
- fix broken serialization docs, which require one thing in the akka
  package
2012-05-24 22:23:36 +02:00
Roland
7d342e5c96 add docs about how to serialize ActorRefs
- scala & java samples of how to obtain the correct address to inject
  when calling ActorPath.toStringWithAddress
2012-05-24 19:27:29 +02:00
Viktor Klang
af4e0c2ce8 Fixing some additional binary compat thingies + documented the heaviness of the ActorSystem 2012-05-24 16:49:24 +02:00
Viktor Klang
ea1817b6d8 Merging with latest master 2012-05-24 11:59:36 +02:00
Jonas Bonér
63e4b6e96e Merge pull request #464 from akka/wip-verify-balancing-dispatcher-is-not-used-with-any-kind-of-router-jboner
Added verification that a BalancingDispatcher can not be used with any kind of Router.
2012-05-23 04:30:28 -07:00
Viktor Klang
5bafa2d3a0 Merge branch 'master' into wip-2006-binary-compat-√ 2012-05-23 12:05:30 +02:00
Roland
6c67149512 Merge branch 'wip-testconductor-∂π'
fixing up constructor of TestConductorTransport and adding resolver for
sbt-assembly (Ivy-style for scalasbt.artifactoryonline.com)
2012-05-22 16:22:10 +02:00
Viktor Klang
f92f7431dd Adding references to Roman Levensteins akka-protostuff and akka-quickser in the serialization docs 2012-05-22 14:57:27 +02:00