Commit graph

223 commits

Author SHA1 Message Date
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
82bbca43ab Merge branch 'master' into wip-1378-fixme-patriknw
Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorRef.scala
	akka-remote/src/main/scala/akka/remote/RemoteActorRefProvider.scala
	akka-remote/src/main/scala/akka/remote/netty/NettyRemoteSupport.scala
2011-12-02 09:03:03 +01:00
Viktor Klang
d626cc2455 Removing suspend and resume from user-facing API 2011-12-02 01:27:42 +01:00
Viktor Klang
879ea7c2b4 Removing startsWatching and stopsWatching from docs and removing cruft 2011-12-02 01:04:33 +01:00
Patrik Nordwall
80ac1737cd First walk throught of FIXME. See #1378
* Fixed obvious
* Created tickets for several, #1408, #1409, #1410, #1412, #1415, 1416, #1418
* Moved LoggingReceive from akka.actor to akka.event
* Touched several of the FIXME to make them visible in code review
2011-11-30 10:48:26 +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
a9217cec7b Merge branch 'master' into wip-1141-config-patriknw
Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorSystem.scala
2011-11-19 09:18:57 +01:00
Patrik Nordwall
7999c4c195 Docs: Changed organization id from se.scalablesolutions.akka to com.typesafe.akka 2011-11-18 13:21:23 +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
62032cb1ff merge system-cleanup into master 2011-11-17 14:38:49 +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
Viktor Klang
18bfa26272 Renaming startsMonitoring/stopsMonitoring to startsWatching and stopsWatching 2011-11-16 16:46:16 +01:00
Roland
53353d7031 rename MainBus to EventStream (incl. field in ActorSystem) 2011-11-10 21:01:37 +01:00
Roland
70ae4e1984 Merge branch 'logging'
known failures in BalancingDispatcherModelSpec and ActorPoolSpec have
tickets
2011-11-09 18:18:32 +01:00
Roland
a747ef7856 Merge remote branch 'origin/master' into logging
BalancingDispatcherModelSpec is currently broken, leaves count==1 in
wavesOfActors test, committed anyway in order to check out where it
broke before this merge
2011-11-09 14:56:05 +01:00
Viktor Klang
bd5b07c573 Merge branch 'master' of github.com:jboner/akka 2011-11-09 11:14:54 +01:00
Viktor Klang
c5de77972d Removing some bad docs 2011-11-09 11:10:36 +01:00
Peter Vlugter
d04ad32588 Get rst docs building again and add some adjustments to the new cluster documentation 2011-11-09 10:40:22 +01:00
Roland
3f21c8a2a6 fix ActorDocSpec by allowing INFO loglevel to pass through 2011-11-04 09:30:33 +01:00
Viktor Klang
a044e41008 Removing outdated and wrong serialization docs 2011-11-03 20:34:48 +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
Amir Moulavi
037dcfa024 Conversion of class names into literal blocks 2011-10-26 14:22:16 +02:00
Amir Moulavi
b5a4018813 Formatting of TransactionFactory settings is changed to be compatible with Configuration section 2011-10-26 13:58:07 +02:00
Jonas Bonér
258279748a Merge pull request #98 from amir343/master
Some formatting correction in TypedActors doc page
2011-10-25 07:31:49 -07:00
Amir Moulavi
ef0491f6de Class names and types in the text are converted into literal blocks 2011-10-25 13:34:28 +02:00
Amir Moulavi
314c9fc1d4 broken bullet list is corrected 2011-10-25 13:09:54 +02:00
Amir Moulavi
dd1d71267b broken bullet list is corrected 2011-10-25 13:07:52 +02:00
Roland
3e3f5320f6 document anonymous actors and their perils, fixes #1242
cherry-picked from release-1.3
2011-10-25 11:48:21 +02:00
Roland
076ec4d0a0 add missing .start() to testing.rst, fixes #1266
cherry-picked from release-1.3
2011-10-25 11:47:45 +02:00
Amir Moulavi
4638f834e3 A typo is corrected in Future example Scala code 2011-10-21 16:14:37 +02:00
Viktor Klang
7d879944ce #1210 - fixing typo 2011-10-19 10:10:03 +02:00
Viktor Klang
474787a81d Renaming createActor to actorOf 2011-10-18 17:56:23 +02:00
Viktor Klang
5788ed4281 Renaming link/unlink to startsMonitoring/stopsMonitoring 2011-10-14 15:09:46 +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
Viktor Klang
913ef5d232 Implementing support for custom eviction actions in ActorPool as well as providing default Props for workers 2011-10-07 11:20:49 +02:00
Peter Vlugter
7884691d3a Begin using compiled code examples in the docs. See #781 2011-10-05 17:41:29 +02:00
Viktor Klang
815f710e11 Removing PriorityDispatcher since you can now use Dispatcher with UnboundedPriorityMailbox or BoundedProprityMailbox 2011-10-04 20:10:04 +02:00
Viktor Klang
a6f53d8605 Major rework of supervision and death watch, still not fully functioning 2011-09-28 14:19:59 +02:00
Jonas Bonér
db8a20ea37 Changed all 'def foo(): Unit = { .. }' to 'def foo() { .. }' 2011-09-27 17:41:02 +02:00
Viktor Klang
a7cb5b5212 Upgrading to SBT 0.11 2011-09-27 10:37:53 +02:00
Viktor Klang
1b90a467bc Removing freshInstance and reverting some of the new BalancingDispatcher code to expose the race condition better 2011-09-26 11:08:45 +02:00
Viktor Klang
6e0e9910e9 Fixing the camel tests for real this time by introducing separate registered/unregistered events for actors and typed actors 2011-09-22 17:15:51 +02:00
Jonas Bonér
00d3b87586 Merge branch 'remote-actorref-provider'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-22 04:38:33 +02:00
Jonas Bonér
db51115a0e Added doc about message ordering guarantees.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-21 23:41:52 +02:00
Viktor Klang
4a0358ad7d Removing LifeCycle from Props, it's now a part of AllForOnePermanent, OneForOnePermanent etc 2011-09-14 18:01:43 +02:00
Viktor Klang
6114df1efd Merge branch 'master' into wip-nostart 2011-09-08 17:22:52 +02:00
Viktor Klang
d8390a61f6 #1180 - moving the Java API to Futures and Scala API to Future 2011-09-08 15:54:06 +02:00
Viktor Klang
bbb79d8e0d Start removed but cluster is broken 2011-09-08 11:02:17 +02:00