Commit graph

291 commits

Author SHA1 Message Date
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
Viktor Klang
ee08695e6f #1830 - Adding warning section in dispatcher docs for the default dispatcher 2012-02-17 13:06:50 +01:00
Bruce Mitchener
3d90f480d0 Fix spelling errors. 2012-02-14 19:50:01 +07:00
Patrik Nordwall
e017aeef08 Replace akka.actor.timeout with specfic settings. See #1808
* ActorTimeout (akka.actor.timeout) was used to all sorts of things.
* TestKit default-timeout
* TypedActor timeout for non void methods
* Transactor coordinated-timeout
* ZeroMQ new-socket-timeout
* And in various tests
2012-02-10 16:07:17 +01:00
Roland
47741511aa Merge branch 'wip-1750-remove-ReflectiveAccess-∂π' 2012-02-10 14:38:58 +01:00
Roland
6786e45dc7 Merge branch 'wip-1804-router-create-race-∂π' 2012-02-10 14:38:51 +01:00
Roland
36247b10fe fix some more comments and make Router dispatcher configurable
- assert locking balance when using Unsafe.instance.monitorExit
- add RouterConfig.routerDispatcher
- re-enable “busy” resizer test after switching to BalancingDispatcher
- document resizer asynchronicity and how to configure dispatchers
2012-02-10 14:13:40 +01:00
Roland
09897459d6 fix up Java API for serializers (both use and implement) 2012-02-10 12:45:22 +01:00
Roland
d2f28a06cd Merge remote-tracking branch 'origin/master' into wip-1750-remove-ReflectiveAccess-∂π 2012-02-10 11:41:47 +01:00
Roland
dca309c535 incorporate Patrik’s feedback
- rename to DynamicAccess
- rename to createInstanceFor / createClassFor
- fix a few little things
2012-02-10 11:36:23 +01:00
viktorklang
eb02d461c7 Merge pull request #319 from jboner/wip-futureblocking-√
Removing the erronous execution context and added Java API
2012-02-10 02:22:14 -08:00
Patrik Nordwall
5b50ca96f2 Minor improvement. See #1713 2012-02-10 10:40:24 +01:00
Viktor Klang
d910eeae69 Removing the erronous execution context and added Java API 2012-02-10 08:20:36 +01:00
Patrik Nordwall
4a5f5eef21 Improve docs and api for zeromq. See #1713
* Wrote a comprehensive example for pub-sub
* Clarified how publish to topic is done
* Several minor, but important, api adjustments for the java api, and some also profit for scala
* Added documentation for Java and updated documentation for Scala
2012-02-09 21:25:22 +01:00
Jonas Bonér
51a218b87f Fixes ticket #1809 - Harmonize configuration option names.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-09 20:40:09 +01:00
Roland
b193bcee04 incorporate Viktor’s review 2012-02-09 19:26:02 +01:00
Roland
2ce47d6bb5 Bye-bye ReflectiveAccess, introducing PropertyMaster, see #1750
- PropertyMaster is the only place in Akka which calls
  ClassLoader.getClass (apart from kernel, which might be special)
- all PropertyMaster methods (there are only three) take a ClassManifest
  of what is to be constructed, and they verify that the obtained object
  is actually compatible with the required type

Other stuff:
- noticed that I had forgotten to change to ExtendedActorSystem when
  constructing Extensions by ExtensionKey (damn you, reflection!)
- moved Serializer.currentSystem into JavaSerializer, because that’s the
  only one needing it (it’s only used in readResolve() methods)
- Serializers are constructed now with one-arg constructor taking
  ExtendedActorSystem (if that exists, otherwise no-arg as before), to
  allow JavaSerializer to do its magic; possibly necessary for others as
  well
- Removed all Option[ClassLoader] signatures
- made it so that the ActorSystem will try context class loader, then
  the class loader which loaded the class actually calling into
  ActorSystem.apply, then the loader which loaded ActorSystemImpl
- for the second of the above I added a (reflectively accessed hopefully
  safe) facility for getting caller Class[_] objects by using
  sun.reflect.Reflection; this is optional an defaults to None, e.g. on
  Android, which means that getting the caller’s classloader is done on
  a best effort basis (there’s nothing we can do because a StackTrace
  does not contain actual Class[_] objects).
- refactored DurableMailbox to contain the owner val and use that
  instead of declaring that in all subclasses
2012-02-09 11:56:43 +01:00
Roland
34d9714e22 add clarification to dispatcher-id documentation 2012-02-08 15:54:58 +01:00
patriknw
ba1b9716ee Merge pull request #314 from jboner/wip-1625-slf4j-test-patriknw
Test for Slf4jEventHandler. See #1625
2012-02-07 08:58:10 -08:00
Patrik Nordwall
4e00eb889f Test for Slf4jEventHandler. See #1625
* Test of MDC parameters and other output using a custom logback appender
* Logback test dependency
* Changed to encoding instead of deprecated layout
2012-02-07 16:25:54 +01:00
Roland
224ce7f773 tone it down: just a Warning in case of ambiguous serializers 2012-02-07 15:51:41 +01:00
Roland
8b9f1caf67 change serialization to strictly rely on subtyping
- when encountering new message type, check all bindings which map apply
- if multiple are found, choose the most specific one if that exists or
  verify that all mappings yield the same serializer
- in case of remaining ambiguity, throw exception
- also add special handling for “none” serializer mapping: turn off a
  default
2012-02-07 15:11:16 +01:00
patriknw
50d107e150 Merge pull request #309 from jboner/wip-1789-ser2-patriknw
Configure serializer with class as key. See #1789
2012-02-07 04:54:32 -08:00
patriknw
6427663fdc Merge pull request #310 from jboner/wip-executor-patriknw
PinnedDispatcher config and docs for dispatcher executor.
2012-02-07 04:36:37 -08:00
Viktor Klang
e12804660f Fixing doc error in remoting 2012-02-07 11:02:01 +01:00
Patrik Nordwall
0bd4663c91 PinnedDispatcher config and docs for dispatcher executor.
* Update PinnedDispatcher config in tests and docs. See #1796
* Update dispatchers doc with info about executor. See #1795
2012-02-07 09:50:03 +01:00
Patrik Nordwall
1dbce49359 Configure serializer with class as key. See #1789 2012-02-06 21:15:17 +01:00
Roland
4e12b72959 move Java code snippet into compiled class 2012-02-06 12:59:03 +01:00
Roland
9ba5043539 add router design rationale, see #1772 2012-02-06 12:18:08 +01:00
Peter Vlugter
3fbd18f0fa Update to ScalaSTM 0.5 (which includes Java API) 2012-02-06 11:34:47 +13:00
patriknw
1d6f350799 Merge pull request #300 from jboner/wip-1776-ser-patriknw
Find serializer by looking at interfaces and super classes. See #1766
2012-02-04 10:19:07 -08:00
Patrik Nordwall
612e909c48 Find serializer by looking at interfaces and super classes. See #1766 2012-02-03 17:32:32 +01:00
Jonas Bonér
2ea6e97a41 Merge branch 'master' of github.com:jboner/akka 2012-02-03 16:31:56 +01:00
Jonas Bonér
a221722c41 Fixed minor typos in the futures docs.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 16:31:31 +01:00
Roland Kuhn
3a5c20e228 Merge pull request #296 from jboner/wip-1779-slf4j-docs-∂π
update docs for SLF4J, see #1779
2012-02-03 06:03:38 -08:00
Roland Kuhn
f62b50a41b add missing parens 2012-02-03 11:44:36 +01:00
Roland Kuhn
8090769730 change “Class[_]” into proper Java raw generics 2012-02-03 11:42:59 +01:00
Roland
b57c9e8f5e update docs for SLF4J, see #1779 2012-02-03 10:47:56 +01:00
Viktor Klang
96412ba1ad Adding ExecutionContext docs for futures, and adding a Java-friendly ExecutionContexts object 2012-02-03 10:35:05 +01:00
Roland
45140b465e Merge remote-tracking branch 'origin/master' into wip-1644-programmatic-deploy-∂π 2012-02-03 09:49:04 +01:00
Viktor Klang
8193e61aee Renaming tryRecover to recoverWith as in SIP14, adding parameter to foreach 2012-02-03 09:25:56 +01:00
Roland
76bba1f530 remote deploy docs & provider.getExternalAddressFor (see #1765) 2012-02-03 09:16:18 +01:00
Viktor Klang
d0d391b1dc Renaming NettyRemoteSupport to NettyRemoteTransport everywhere 2012-02-01 16:34:20 +01:00
viktorklang
d8d0f4486f Merge pull request #284 from jboner/wip-1735-fix-pipe-to-√
Removing pipeTo from akka.actor, renamed pipeTo(f,a) to pipe(f,a)
2012-02-01 05:57:44 -08:00
Viktor Klang
009a1afe89 Making createAsker private, adding docs for 'to', changing Java API to be symmetric to Java 2012-02-01 14:54:54 +01:00
patriknw
e791f809ef Merge pull request #273 from jboner/wip-1730-diagrams-patriknw
DOC: Derek Wyatt's diagrams of fault tolerance sample, and descriptions.
2012-02-01 05:19:49 -08:00
Viktor Klang
0c02adaa75 Merge branch 'master' into wip-1735-fix-pipe-to-√ 2012-02-01 12:05:54 +01:00
patriknw
ed7ff3b02f Merge pull request #283 from jboner/wip-1716-directives-patriknw
Replaced Action with Directive in SupervisorStrategy. See #1716
2012-02-01 02:28:42 -08:00
Viktor Klang
571af3d8d2 Removing pipeTo from akka.actor, renamed pipeTo(f,a) to pipe(f,a) 2012-01-31 18:56:25 +01:00
Viktor Klang
815245a133 Merging with master 2012-01-31 17:56:49 +01:00