Commit graph

7959 commits

Author SHA1 Message Date
Roland
6b9cdc5f65 fix ActorRef serialization
- represent it by SerializedActorRef(path), i.e. only a “tagged” string
- remove serialize/deserialize from ActorRefProvider interface
- adapt test since deadLetters is returned when nothing found instead of
  exception
- multi-jvm tests are still broken, but that is due to look-up of remote
  actors, which I have just not done yet
2011-12-01 14:31:02 +01:00
Roland
b65799c7f3 remove ActorRef.address & ActorRef.name
- address => path.toString
- name => path.name
- forward hashCode, equals and compareTo to path
- implement recursive efficient ActorPath.compareTo
- fix ActorPath.equals endless recursion
- remove wrong warning in ActorCell.systemInvoke.supervise()
2011-11-30 23:30:56 +01:00
Roland
7e4333a612 fix actor creation with duplicate name within same message invocation
- ActorCell will pre-fill the childrenRefs with the reserved name in
  order to detect duplicates
- also clean up some test outputs (some ActorSystems forgot to fall back
  to testConf so they did not get the TestEventListener anymore)
- fix race in start-up of LoggingReceiveSpec by ignoring messages from
  testActor start (never was slow enough on my machine to trigger =>
  thank you Jenkins, again!)
- represent actors in logging only by their path, i.e. remote Actor[...]
  decoration
- fix automatic naming of AkkaSpec ActorSystems after the true class
  name of the test spec
2011-11-30 22:19:48 +01:00
Roland
97789dda80 fix one typo and one bad omission:
if you override a method and use a more specific return type, scalac
will emit a bridge method with the expected signature pointing to the
more specific one, but currently this does upset the Eclipse based
Java builders, so add one type ascription to ExtensionKey.
2011-11-30 15:03:33 +01:00
Roland
073c3c012b fix EventStreamSpec by adding Logging extension
- used only to keep the uniquifying logger counter per-ActorSystem
- add convenience-class for writing an extension with only two lines
  overhead (Java: three)!
2011-11-29 23:00:57 +01:00
Roland
afda539324 merge master into wip-ActorPath-rk 2011-11-29 21:52:18 +01:00
Jonas Bonér
8f5ddff153 Added initial support for ls.implicit.ly to the build, still need more work though 2011-11-29 16:40:39 +01:00
Roland
3182fa3d73 second step: remove LocalActorRefProvider.actors
- duplicate name detection done within ActorCell/ActorSystem (i.e. at
  parent level)
- no caching needed for local look-ups, might re-introduce cache in
  remote layer
- implement suitable equals/hashCode on ActorPaths
- fix some (unintended => buggy) name reuses which previously silently
  returned a different actor
- serialization & EventStreamSpec still failing, need to commit to merge
  in other stuff on which the future fixes will depend
2011-11-29 16:32:50 +01:00
Jonas Bonér
bcaadb9a1d Merge branch 'master' of github.com:jboner/akka 2011-11-29 11:31:01 +01:00
viktorklang
8ab25a23ac Merge pull request #128 from jboner/wip-1371
Making TypedActors an Akka Extension and adding LifeCycle overrides to T...
2011-11-29 00:49:26 -08:00
Viktor Klang
7706eea975 Merge branch 'master' of github.com:jboner/akka 2011-11-28 17:31:09 +01:00
Viktor Klang
16850388e0 Fixing #1379 - making the DLAR the default sender in tell 2011-11-28 17:24:41 +01:00
patriknw
6f18192e9b Merge pull request #126 from jboner/wip-1402-error-without-stacktrace-patriknw
Skip stack trace when log error without exception. See #1402
2011-11-28 08:09:57 -08:00
Patrik Nordwall
01e43c3edb Use scala.util.control.NoStackTrace 2011-11-28 17:08:10 +01:00
Jonas Bonér
b4c09c6f7b Merge branch 'master' of github.com:jboner/akka 2011-11-28 17:07:37 +01:00
Jonas Bonér
abf4b52f3e Added *.vim to .gitignore 2011-11-28 17:07:31 +01:00
Patrik Nordwall
f3cafa5fd3 Merge branch 'master' into wip-1402-error-without-stacktrace-patriknw
Conflicts:
	akka-slf4j/src/main/scala/akka/event/slf4j/SLF4J.scala
2011-11-28 17:00:12 +01:00
patriknw
1807851dc0 Merge pull request #125 from jboner/wip-1401-slf4j-patriknw
Slf4jEventHandler should not format log message. See #1401
2011-11-28 07:55:58 -08:00
Viktor Klang
539e12a7a4 Making TypedActors an Akka Extension and adding LifeCycle overrides to TypedActors, see #1371 and #1397 2011-11-28 16:15:08 +01:00
Patrik Nordwall
87a22e4d28 stdout-loglevel = WARNING in AkkaSpec 2011-11-28 14:59:41 +01:00
Patrik Nordwall
a229140fac Fixed race in trading perf test. Fixes #1383 2011-11-28 14:44:19 +01:00
Patrik Nordwall
10517e5183 Skip stack trace when log error without exception. See #1402 2011-11-28 13:35:10 +01:00
patriknw
bff464479b Merge pull request #124 from jboner/wip-1373-log-config-patriknw
Added logConfig to ActorSystem and logConfigOnStart property. See #1373
2011-11-28 01:36:41 -08:00
Patrik Nordwall
3846b63dcf Minor review fixes 2011-11-28 10:34:15 +01:00
Patrik Nordwall
0f410b1252 Merge branch 'master' into wip-1373-log-config-patriknw 2011-11-28 10:22:04 +01:00
Patrik Nordwall
19a78c0e58 Slf4jEventHandler should not format log message. See #1401
* Updated documentation with info about MDC.
* Updated documentation conf of logLevel.
* Updated documentation Logback 1.0.0.
2011-11-28 10:07:30 +01:00
Patrik Nordwall
52c0888500 Changed slf4j version to 1.6.4. See #1400 2011-11-28 09:47:41 +01:00
Peter Vlugter
534db2df50 Add sbt settings to exclude or include tests using scalatest tags. Fixes #1389 2011-11-28 13:02:31 +13:00
Henrik Engstrom
fda8bce371 Updated DefaultScheduler and its Spec after comments, see #1393 2011-11-26 15:24:13 +01:00
Henrik Engstrom
8bd4dadb96 Added check in DefaultScheduler to detect if receiving actor of a reschedule has been terminated. Fixes #1393 2011-11-25 17:56:14 +01:00
Patrik Nordwall
de2de7e9c2 Added logConfig to ActorSystem and logConfigOnStart property. See #1373
* toString of Config isn't good right now, but that will be fixed in Config lib
2011-11-25 16:19:54 +01:00
Jonas Bonér
bd2fdaa647 Merge branch 'master' of github.com:jboner/akka 2011-11-25 15:42:51 +01:00
Jonas Bonér
d2ef8b99bc Fixed problems with remote configuration.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-25 15:42:25 +01:00
Patrik Nordwall
380cd1c128 Added some variations of the TellThroughputPerformanceSpec 2011-11-25 14:35:20 +01:00
Jonas Bonér
8237271310 Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-25 12:10:41 +01:00
Jonas Bonér
993947335b Added configuration for seed nodes in RemoteExtension and Gossiper. Also cleaned up reference config from old cluster stuff.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-25 12:02:25 +01:00
viktorklang
e33b9569f2 Merge pull request #123 from jboner/wip-extensions
Reinterpretation of Extensions
2011-11-25 02:26:00 -08:00
Jonas Bonér
3640c09464 Removed obsolete sample modules and cleaned up build file.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-25 11:01:03 +01:00
Viktor Klang
603a8ed034 Creating ExtensionId, AbstractExtensionId, ExtensionIdProvider and Extension 2011-11-25 10:45:22 +01:00
Jonas Bonér
0a1740cd6d Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-24 21:05:41 +01:00
Viktor Klang
bf20f3fa44 Reinterpretation of Extensions 2011-11-24 18:53:18 +01:00
Roland
dad1c98c48 first step: sanitize ActorPath interface
- remove references to ActorSystem
- make ChildActorPath light-weight (name & parent plus tailrec methods
  for traversing towards root, e.g. toString)
- string rep is full URI always (akka://system-name@host:port/user/bla)
2011-11-24 17:22:53 +01:00
Jonas Bonér
ef6c8370cd Added BroadcastRouter which broadcasts all messages to all the connections it manages, also added tests.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-11-24 16:35:37 +01:00
Roland
96598704c8 Merge remote-tracking branch 'origin/master' into wip-ActorPath-rk 2011-11-24 16:06:47 +01:00
viktorklang
c0d3c523e2 Merge pull request #122 from jboner/hwt-nano-henrikengstrom
Using nanoTime instead of currentTimeMillis in HWT
2011-11-24 06:08:14 -08:00
patriknw
f7bba9efc5 Merge pull request #121 from jboner/wip-1361-modularize-config-reference-patriknw
Modularize configuration. See #1361

* Split config reference to one for each module/extension.
* Adjusted signature of registerExtension to avoid race of extension init
* Moved Duration.dilated to testkit
* TestKitExtension
* RemoteExtension
* SerializationExtension
* Durable mailboxes extensions
* Fixed broken serialization bindings and added test
* Updated configuration documentation
* System properties akka.remote.hostname akka.remote.port replaced with akka.remote.server.hostname and akka.remote.server.port
* Adjustments of ActorSystem initialization. Still don't like the two-phase constructor/init flow. Very fragile for changes.
2011-11-24 05:59:03 -08:00
Patrik Nordwall
c53d5e16e5 Merge branch 'master' into wip-1361-modularize-config-reference-patriknw
Conflicts:
	akka-actor/src/main/resources/akka-actor-reference.conf
	akka-actor/src/main/scala/akka/actor/ActorRefProvider.scala
	akka-actor/src/main/scala/akka/actor/ActorSystem.scala
	akka-remote/src/main/scala/akka/remote/Gossiper.scala
	akka-remote/src/main/scala/akka/remote/netty/NettyRemoteSupport.scala
2011-11-24 14:56:19 +01:00
Henrik Engstrom
8b6afa9937 Removed unnecessary method and utilize System.nanoTime directly instead. See #1381 2011-11-24 14:36:13 +01:00
Patrik Nordwall
c9187e21f6 Minor fixes from review 2011-11-24 14:34:42 +01:00
Henrik Engstrom
310b2736c0 Changed the HWT implementation to use System.nanoTime internally instead of System.currentTimeMillis. Fixes #1381 2011-11-24 14:30:03 +01:00