Commit graph

28 commits

Author SHA1 Message Date
Jonas Bonér
80600abc33 Added 'withRouter[TYPE]' to 'Props'.
Added docs (Scala and Java) and (code for the docs) for 'Props'.
Renamed UntypedActorTestBase to UntypedActorDocTestBase.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-14 14:05:44 +01:00
Viktor Klang
89e29b07e1 Adding daemonicity to the dispatcher configurator 2011-12-13 20:24:09 +01:00
Jonas Bonér
b5d1785e05 Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 15:37:16 +01:00
Jonas Bonér
8c8680473a Merge branch 'wip-clean-up-actor-cell-jboner'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 15:14:23 +01:00
patriknw
2f8706ee3a Merge pull request #149 from jboner/wip-doc-dispatchers-scala-patriknw
DOC: Update Dispatchers (Scala) Chapter
2011-12-13 06:05:47 -08:00
Patrik Nordwall
7a17eb00bf DOC: Corrections of dispatcher docs from review. See #1471 2011-12-13 15:03:32 +01:00
Jonas Bonér
d725c9c681 Updated docs with changes to 'actorOf(Props(..))'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 14:53:18 +01:00
Patrik Nordwall
0f41cee6de Split logging doc into scala and java. See #1467 2011-12-13 14:46:15 +01:00
Jonas Bonér
c9b787f029 Removed all 'actorOf' methods that does not take a 'Props', and changed all callers to use 'actorOf(Props(..))'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 14:09:40 +01:00
Jonas Bonér
86a5114d79 Cleaned up ActorCell, removed all Java-unfriendly methods 2011-12-13 11:11:21 +01:00
Patrik Nordwall
eede488fd3 Added lookup method in Dispatchers to provide a registry of configured dispatchers to be shared between actors. See #1458 2011-12-13 07:37:23 +01:00
Patrik Nordwall
03e731e098 DOC: Update Dispatchers (Scala) Chapter. See #1471 2011-12-13 07:37:23 +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
Viktor Klang
9cc8b67cf4 Merging in the hotswap docs into master 2011-12-08 15:12:54 +01:00
Patrik Nordwall
c8472826fe Fixed review comments 2011-12-07 16:44:52 +01:00
Patrik Nordwall
5cee76820e Updated documentation of Actors Scala. See #1435 2011-12-07 11:56:58 +01:00
Patrik Nordwall
f7d6393027 Removed actorOf methods from AkkaSpec. See #1439 2011-12-07 11:10:54 +01:00
Patrik Nordwall
3204269f6a Cleanup of methods in Actor and ActorContext trait. See #1377
* Added JavaActorContext, UntypedActor.getContext
* implicit val context in Actor needs to be implicit to support forward,
it would be nice if it wasn't implicit because now I can't override context
in UntypedActor
* Removed implicit def system in Actor
* Removed implicit def defaultTimeout in Actor
* Removed receiveTimeout, children, dispatcher, become, unbecome, watch,
unwatch in Actor
* Removed corresponding as above from UntypedActor
* Removed implicit from dispatcher in ActorSystem
* Removed implicit def timeout in TypedActor
* Changed receiveTimeout to use Duration (in api)
* Changed many tests and samples to match new api
2011-12-06 09:50:16 +01:00
Patrik Nordwall
3d6c0fbae6 Removed unecessary import 2011-11-18 11:34:52 +01:00
Patrik Nordwall
4b8f11ea92 Replaced akka.config with new configuration utility. See #1141 and see #1342
* All default values removed from code and loaded from akka-actor-reference.conf, located in src/main/resources (included in jar)
* Default test configuration included in AkkaSpec instead of using akka.test.conf, avoids problems when running test (in IDE) and forgetting to use -Dakka.mode=test.
* System.properties used first, if availble
* Next step will be to split akka-actor-reference.conf in separate -reference for each module
2011-11-18 10:05:40 +01:00
Roland
648661c548 clean up initialization of ActorSystem, fixes #1050
- create ActorSystemImpl trait to make ActorSystem fully abstract
- add Java API for constructing (ActorSystem.create(...))
- only go through factory methods because .start() has become necessary
- rename all user-facing occurrences of “app” to “system” (Actor trait
  and TestKit/AkkaSpec)
- pass ActorSystemImpl to ActorRefs upon creation, which means that
  actorOf() and friends need such an argument, which must be provided to
  the ActorRefProvider by the ActorRefFactory implementation
2011-11-16 17:18:36 +01:00
Roland
53353d7031 rename MainBus to EventStream (incl. field in ActorSystem) 2011-11-10 21:01:37 +01:00
Roland
3f21c8a2a6 fix ActorDocSpec by allowing INFO loglevel to pass through 2011-11-04 09:30:33 +01:00
Roland
f46c6dc533 introducing: MainBus feat. LoggingBus
most tests passing, everything compiling, but docs not updated and nasty
thread-leak preventing me from running the whole test-suite (which is
the reason for this commit: I want to chase down that one first).

- the app.mainbus is classified by Class[_] (currently lookup, will
  possibly change to sub-class-aware) and accepts AnyRef messages
- LoggingBus handles akka.event-handlers from config specially:
  + start them as system services, supervised by SystemGuardian
  + keep their subscriptions in sync when logLevel_= is called
  + send them InitializeLogger(bus) message before subscribing them (so
    they can register for extras like Mute/UnMute)
- two-phased start-up: first phase with actor-less stdout logging, then
  subscription of config loggers, then remove stdout logger (logLevels
  configurable separately)
- MainBusReaper watches registered receivers and unsubscribes them upon
  death (started in phase 2)
- logger factory on Logging object, needs app/bus and log source;
  default instance in app.log
2011-10-27 12:36:22 +02:00
Viktor Klang
474787a81d Renaming createActor to actorOf 2011-10-18 17:56:23 +02:00
Roland
3709a8f828 fix akka-docs compilation, remove duplicate applications from STM tests 2011-10-13 13:53:09 +02:00
Roland
e2f9528bc0 fix compilation of akka-docs 2011-10-12 15:25:04 +02:00
Peter Vlugter
7884691d3a Begin using compiled code examples in the docs. See #781 2011-10-05 17:41:29 +02:00