Commit graph

9109 commits

Author SHA1 Message Date
Henrik Engstrom
0cc34fdb3c Added resolver to Typesafe snapshot repo used for play-mini. See #1538 2012-02-13 08:42:57 +01:00
Henrik Engstrom
1e879b6d03 Added HTTP docs with a sample application. See #1538 2012-02-12 23:09:47 +01:00
Patrik Nordwall
be70801289 DOC: Corrections for the MultiJVM doc. See #1801 2012-02-10 17:14:05 +01:00
Roland
b6b438415e fix up FromConfig router: allow empty constructor for Java 2012-02-10 14:55:40 +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
4b71872aef fixing up final misnamers (createClassFor -> getClassFor) 2012-02-10 14:36:35 +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
patriknw
5c0511dbd8 Merge pull request #322 from jboner/wip-1784-akkaexc2-patriknw
Removed host info from AkkaException. See #1784
2012-02-10 04:49:31 -08:00
Patrik Nordwall
3e917e1c57 Removed host info from AkkaException. See #1784 2012-02-10 13:39:22 +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
patriknw
c78fea12ca Merge pull request #318 from jboner/wip-1713-zmq-patriknw
Improve docs and api for zeromq. See #1713
2012-02-10 01:42:00 -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
Roland
bbe221e812 incorporate Viktor’s feedback and fix some stuff
- initial resize should be done directly
- must not require children unconditionally in Router constructor
- ResizerSpec changed timing due to asynchronous resizing, one test
  disabled
- removed pointless volatile write in RouterActorRef
2012-02-09 22:58:28 +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
ca3deb4007 now that was a nice journey (related to #1804)
- first, fix quite some data races in RoutedActorRef wrt. the contained
  ActorCell’s childrenRef field (which is not even @volatile)
- then notice that there still are double-deregistrations happening in
  the dispatcher
- coming finally to the conclusion that the Mailbox should not really
  process all system messages in processAllSystemMessages(): we should
  really really stop after having closed the mailbox ;-)
- added simple test case which stops self twice to keep this fixed
2012-02-09 17:34:14 +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
ae2ce0261f Merge pull request #315 from jboner/wip-1805-thread-names-patriknw
Proper thread names for fork-join-executor. See #1805
2012-02-08 05:06:09 -08:00
Patrik Nordwall
df1606a8ee Adjustments based on review. See #1805 2012-02-08 14:03:31 +01:00
Patrik Nordwall
81451208f1 Pi is not a constant, it has changed 2012-02-08 13:37:19 +01:00
Patrik Nordwall
c43b024cac Fixed the failing doc test 2012-02-08 13:37:00 +01:00
Roland
9a7b9d7ab9 remove unnecessary “return” in fault handling and make code look nicer 2012-02-08 13:16:59 +01:00
Patrik Nordwall
1f988889c2 Proper thread names for fork-join-executor. See #1805 2012-02-08 11:53:55 +01:00
Roland
771da2c7e2 clarify wording or Pi sample configuration section
also move Pi.scala into the correct directory so that it can actually
be launched as Scala Application from Eclipse
2012-02-08 11:25:30 +01:00
Roland
7c6b9db17b mark two doc tests as TimingTests 2012-02-08 11:25:30 +01:00
Patrik Nordwall
b25d25e6f7 DOC: Error Kernel example in Actor docs doesn't do what is intended. See #1803 2012-02-08 10:04:47 +01:00
patriknw
780736255b Merge pull request #311 from jboner/wip-1786-SerialVersionUID-patriknw
Some cleanup and additional tests for Serializable. See #1786
2012-02-08 00:38:40 -08:00
Roland
761a61eb6b remove sbteclipse plugin from project/plugins.sbt
this should be in each user’s .sbt directory, so that everybody is free
to use which version they like
2012-02-08 09:36:17 +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
Roland Kuhn
9cba8bf6a0 Merge pull request #313 from jboner/wip-ser-specific-∂π
change serialization to strictly rely on subtyping
2012-02-07 07:30:09 -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
c40d76c0ab review-based improvements on Serialization 2012-02-07 16:21:48 +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
b021782eda Merge pull request #312 from jboner/wip-1799-jvmExitOnFatalError-patriknw
System.exit on fatal error and removed actor null check. See #1799 and #1768
2012-02-07 04:38:55 -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
Patrik Nordwall
ac38686593 System.exit on fatal error and removed actor null check. See #1799 and #1768
* Config property jvmExitOnFatalError
* System.exit in case of fatal error, such as OutOfMemoryError
* Adjusted NonFatal extractor, ok with StackOverflowError, not ok with LinkageError
* Removed the actor null check in ActorCell
2012-02-07 12:00:50 +01:00
Viktor Klang
3f06758142 Adding link to config for application.conf 2012-02-07 11:14:09 +01:00
Viktor Klang
e12804660f Fixing doc error in remoting 2012-02-07 11:02:01 +01:00
Patrik Nordwall
2a167acd92 Some cleanup and additional tests for Serializable. See #1786
* Tried to add @SerialVersionUID(1L) but that removed static forwarders, due to https://issues.scala-lang.org/browse/SI-4804
* Added Serializable to UntypedActorFactory
* Removed some unecessary Serializable
2012-02-07 10:28:42 +01:00
Patrik Nordwall
9c8c0d42c5 Add @SerialVersionUID to Serializable classes. See #1786
* @SerialVersionUID(1L)
* UntypedActorFactory serialization, and test
* Removed Serializable from Serializers
2012-02-07 10:05:54 +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