Commit graph

12466 commits

Author SHA1 Message Date
Patrik Nordwall
f07768d94e DOC: Disabled spring, camel and microkernel. See #1455 2011-12-12 12:08:35 +01:00
Patrik Nordwall
eaafed69eb DOC: Update Durable Mailboxes Chapter. See #1472 2011-12-12 11:51:12 +01:00
Viktor Klang
53e8373b93 Changing AskActorRef so that it cannot be completed when it times out, and that it does not complete the future when it times out 2011-12-12 10:32:36 +01:00
Peter Vlugter
08af7684e5 Include copy xsd in release script 2011-12-12 15:45:43 +13:00
Henrik Engstrom
a7886abdf0 Implemented a couple of router types. Updated some tests. See #1440 2011-12-11 22:40:28 +01:00
Viktor Klang
2673a9c047 Removing Future.as[] and commenting out 2 Java Specs because the compiler can't find them? 2011-12-11 20:12:55 +01:00
Roland
7f0275bca2 that was one hell of a FIXME
- fixed so that netty pipeline when generating addresses does not need
  to know the system name of the connecting client (which might differ
  from the local one, of course)
- this entailed differentiating between transport addresses and system
  addresses, which I took as an opportunity to separate everything out
  properly so that address schemas can easily be made pluggable
- made RemoteSupport generic in the address format it supports
- adapt netty stuff, and made everything else work with the most
  generic: ParsedTransportAddress
- did I mention that I statically separated unparsed from parsed
  addresses?
2011-12-11 20:00:26 +01:00
Viktor Klang
4f925007ea Converting away the usage of as[..] 2011-12-11 18:25:35 +01:00
Viktor Klang
1efed78de8 Removing resultOrException 2011-12-11 14:06:30 +01:00
Roland Kuhn
5a79a9104a Merge pull request #145 from jboner/wip-1479-Duration-rk
add Deadline support
2011-12-11 04:35:47 -08:00
Roland
baf2a1746a add docs for Deadline 2011-12-11 13:34:57 +01:00
Roland
40654227b7 fix review comment .size>0 => .nonEmpty 2011-12-11 13:05:18 +01:00
Roland
27e93f66ca polish Deadline class
- remove implicit because that feels too wide: explicitly extracting the
  current timeLeft seems much better.
- if an implicit Duration is asked for, provide one given an implicit
  Deadline (this does not act as view; the details elude me, but it
  is what I want)
- add basic arithmetic
2011-12-11 11:32:21 +01:00
Viktor Klang
de758c0cc1 Adding Blockable.sync to reduce usage of resultOrException.get 2011-12-11 01:29:46 +01:00
Roland
f4cc4c16a4 add Deadline class
- support implicit conversion to Duration, which gives the time left
  until the deadline
- easy construction with “fromNow”, either from Duration or directly:

2 seconds fromNow
2011-12-11 00:56:39 +01:00
Viktor Klang
3b1330c6d7 Tests are green with new Futures, consider this a half-way-there marker 2011-12-11 00:40:52 +01:00
Roland
11601c2926 fix some FIXMEs
- add Java API for FaultHandlingStrategy.Action values
- verify that Mailbox.debug being a constant elides its printlns
- remove dead code from bubbleWalker
2011-12-10 22:52:49 +01:00
Roland
09aadcb60d incorporate review comments
- add two missing @volatiles
- add quite some comments
- refactor provider.actorOf to always take a path for the child, not
  only a name
2011-12-10 20:32:23 +01:00
Roland
d4a764cfd9 remove LocalActorRef.underlyingActorInstance
- was used only in BalancingDispatcherSpec (was dirty, fixed dirty) and
  TestActorRef
- fixing the latter involved opening up ActorCell slightly for allowing
  new AutoReceivedMessage types (that trait is now not sealed anymore)
- TestActorRef then checks underlying.actor and retrieves it using a
  message-based request if it is still null
2011-12-10 16:56:53 +01:00
Henrik Engstrom
fd7a041c09 merged 2011-12-10 12:58:34 +01:00
Henrik Engstrom
11450ca4e0 tmp 2011-12-10 10:53:38 +01:00
Roland
57d88594b6 tweak authors.pl convenience 2011-12-10 10:27:36 +01:00
Peter Vlugter
ceb888b9a7 Add scripted release 2011-12-10 13:31:40 +13:00
Roland
f4fd207fdc re-enable multi-jvm tests
- only Direct* and New* for now, since
- the non-trivial routers are not yet done and not topic of this branch
2011-12-09 20:58:59 +01:00
Roland
4f643eaa1b simplify structure of Deployer
- remove unused ActorDeployer trait
- put everything in one class with simple initialization structure and
  one protected method to override for adaptations
- adapt RemoteDeployer accordingly
- change “remote” key to directly contain the single remote address,
  since there is nothing else to configure
- adapt test cases accordingly
2011-12-09 20:19:59 +01:00
Jonas Bonér
7db3f62ff5 Converted tabs to spaces.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 18:45:52 +01:00
Jonas Bonér
4d649c3903 Removed all @author tags for Jonas Bonér since it has lost its meaning.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 18:44:59 +01:00
Jonas Bonér
15c0462db3 Added sbteclipse plugin to the build (version 1.5.0)
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 18:28:43 +01:00
Roland
8540c70f18 require deployment actor paths to be relative to /user
- they still must start with “/” in the configuration file
- they will be looked up while deploying under /user and /remote, the
  latter being necessary to support fully transparent deployment (i.e.
  the path under /remote is shortened from the left to arrive at the
  logical ancestor which is just a child of /user on some node)
2011-12-09 18:15:14 +01:00
Roland
e773279138 fix remote-deployed zig-zag look-up
- looker on node A
- looker/child on node B
- looker/child/grandchild on node A
2011-12-09 18:07:42 +01:00
Jonas Bonér
991a4a3fd9 Removed multi-jvm test for gossip. Will reintroduce later, but first write in-process tests for the gossip using the new remoting.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 17:46:29 +01:00
Roland
b84a35456d Merge remote-tracking branch 'origin/1428-RoutedActorRef-henrikengstrom' into wip-remote-supervision-rk 2011-12-09 15:13:35 +01:00
Roland
a20aad4a5b fix routing of remote messages bouncing nodes (there may be pathological cases ...)
- RemoteCommunicationSpec last test currently failing, lookup of
  deployment must be fixed to work zig-zag across nodes
- commit mainly to merge with Henrik’s router work and get the surface
  clean
2011-12-09 14:52:11 +01:00
Henrik Engstrom
90b6833978 Initial take on new routing implementation. Please note that this is work in progress! 2011-12-09 14:46:57 +01:00
patriknw
02889404fe Merge pull request #143 from jboner/wip-1435-doc-java-actors-patriknw
Updated documentation of Actors (Java). See #1435
2011-12-09 04:32:24 -08:00
Patrik Nordwall
884dc43a7d DOC: Replace all akka.conf references. Fixes #1469
* Let us use :ref:`configuration` in all places to refer to the configuration.
2011-12-09 13:27:27 +01:00
Patrik Nordwall
9fdf9a9c66 Removed mist from docs. See #1455 2011-12-09 12:41:08 +01:00
Patrik Nordwall
09719af11a From review comments 2011-12-09 12:29:32 +01:00
Patrik Nordwall
f28a1f3834 Fixed another shutdown of dispatcher issue. See #1454 2011-12-09 12:16:13 +01:00
Patrik Nordwall
9a677e528e whitespace format 2011-12-09 12:14:55 +01:00
Patrik Nordwall
b22679e43d Reuse the deployment and default deployment configs when looping through all deployments. 2011-12-09 10:53:21 +01:00
Roland
e5bd8b5f88 make remote supervision and path continuation work
- add supervisor to remote USE message
- make remoteDaemon a VirtualPathContainer like
  LocalActorRefProvider.tempContainer (i.e. synchonous with CHM-based
  child lookup), scrap remoteDaemonSupervisor and rename remoteDaemon to
  “/remote” to match the plans in the docs
- comment out the remote deployment configuration section, to be done
  when Henrik is finished with RoutedActorRef work
- for now only “remote.nodes = ["sys@host:port"]” is looked at, i.e. if
  at least one is present, the first one is used to determine where to
  deploy the currently created child (routers will do the scaling-out
  component) [rest is commented out]
- multi-jvm tests not yet re-enabled (need to be adapted), but all other
  tests are GREEN (at least on my machine)
2011-12-09 00:02:27 +01:00
Patrik Nordwall
1979b14061 UnhandledMessageException extends RuntimeException. See #1453 2011-12-08 19:30:05 +01:00
Patrik Nordwall
ce128740ab Updated documentation of Actors (Java). See #1435
* Aligned the Java and Scala documentation for Actors
* Implemented hotswap samples in Java, and documented in same way as Scala docs
* Improved Actors (Scala) docs
* Fixed wrong preRestart and postRestart in UntypedActor
* Changed name of Dispatchers.fromConfig to newFromConfig and made it Java friendly
* Added ActorRef.ask with Timeout parameter in addition to the timeoutMillis
2011-12-08 19:30:04 +01:00
viktorklang
b4f486667f Merge pull request #142 from jboner/wip-1447-actor-context-not-serializable-√
Making sure that ActorCell isn't serializable
2011-12-08 08:45:34 -08:00
Viktor Klang
3b5d45feac Minor corrections after review 2011-12-08 17:45:02 +01:00
Viktor Klang
712805baec Making sure that ActorCell isn't serializable 2011-12-08 16:07:03 +01:00
viktorklang
2b17415535 Merge pull request #141 from jboner/wip-1290-clarify-pitfalls
Clarifying some do's and dont's on Actors in the jmm docs
2011-12-08 06:16:27 -08:00
Viktor Klang
c2d9e70645 Fixing indentation and adding another common pitfall 2011-12-08 15:16:04 +01:00
Viktor Klang
9cc8b67cf4 Merging in the hotswap docs into master 2011-12-08 15:12:54 +01:00