Commit graph

287 commits

Author SHA1 Message Date
Viktor Klang
3ba5db053a Merge branch 'master' into wip-2006-binary-compat-√ 2012-05-21 14:37:42 +02:00
Viktor Klang
26f6c48ae1 HUGE CHANGE - moving behaviorStack into ActorCell 2012-05-21 13:47:48 +02:00
patriknw
d64020a2cc Merge pull request #455 from akka/wip-2061-dmb-tests-patriknw
Create test-fixture for durable mailboxes. See #2061
2012-05-20 22:48:54 -07:00
Roland
9105720809 properly take boxing into account when expecting messages by type or class 2012-05-15 21:12:46 +02:00
Patrik Nordwall
8924080017 Create test-fixture for durable mailboxes. See #2061
* Improved DurableMailboxSpec for stand alone usage
* Changed build to publish DurableMailboxSpec in akka-mailboxes-common-test
* Changed documentation of durable mailboxes and added full example of
  how to implement a durable mailbox, with test
2012-05-15 16:11:00 +02:00
Roland
afd81d8506 Revert "closes #2019: Use parentheses for arity-0 methods which are not referentially transparent"
This reverts commit 8dbfbbe966.
2012-05-03 21:14:47 +02:00
viktorklang
55dc5106a4 Merge pull request #417 from akka/issue-2019
closes #2019: Use parentheses for arity-0 methods which are not referent...
2012-04-27 06:46:44 -07:00
Viktor Klang
6cfe768d03 #1986 - Adding Java API constructors for Mute/UnMute 2012-04-25 18:47:51 +02:00
Heiko Seeberger
8dbfbbe966 closes #2019: Use parentheses for arity-0 methods which are not referentially transparent 2012-04-24 16:38:21 +02:00
Roland
84c08e8a63 add option to log UnhandledMessage, see #1999
- LoggingBus.startDefaultLoggers will register a forwarder actor for
  UnhandledMessage, which republishes them as Debug message
- add tests and docs
- TestEventListener logs UnhandledMessage as Warning
2012-04-23 15:40:21 +02:00
Roland
ca9d6b369d fix CallingThreadMailbox.numberOfMessages 2012-04-03 16:28:36 +02:00
Roland
e9a6c16bdc fix CallingThreadMailbox.hasMessages, see #1918 2012-04-03 16:28:36 +02:00
Roland
57b1a8fc08 rewrite ZeroMQ poll loop
- do not use futures, do not use different executors
- only use Poll token; schedule OR poller.poll in case of no message
  available, depending on the sign of the poll timeout
- restructure receive method to avoid PartialFunction.orElse overhead
2012-04-02 18:09:09 +02:00
Roland
84e475c1e0 fix TestKit class scaladoc 2012-03-26 12:12:29 +02:00
Jonas Bonér
0d022afa5e Created test tag LongRunningTest ("long-running") for excluding long running (cluster) tests from standard suite.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-28 11:15:53 +01:00
Adam Lesperance
1cb657e02e Reword default config headers 2012-02-21 14:39:08 -06:00
Roland
2d765718cf Merge branch 'wip-1844-mailboxes-∂π' 2012-02-21 14:07:30 +01:00
Roland
3eeaadd804 move back to explicit enqueue/dequeue delegation from Mailbox to MessageQueue, see #1844 2012-02-21 13:22:25 +01:00
Roland Kuhn
ea45c8bdbb Merge pull request #334 from jboner/wip-system-and-routers-∂π
Wip system and routers ∂π
2012-02-20 01:59:32 -08:00
Roland
2f3737195b split Mailbox and MessageQueue, see #1844
- this enables using any MessageQueue in BalancingDispatcher,
  CallingThreadDispatcher and in general leads to less conflation of
  concepts
- add MessageQueue.cleanUp(owner, deadLetterQueue) for the benefit of
  durable mailboxes
- change MailboxType.create to take an optional owner and generate only
  a MessageQueue, not a Mailbox
2012-02-19 10:28:56 +01:00
Roland
ec15fd6cfd add TestKit.setAutoPilot, see #1807 2012-02-19 00:09:04 +01:00
Viktor Klang
e88f2bd936 First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions? 2012-02-16 12:31:49 +01:00
Viktor Klang
aef41fbef3 Merge branch 'master' into wip-1800-balancing-è 2012-02-13 18:18:29 +01:00
Roland
7c57a9d60e final touch to actor start-up sequence
split systemDispatch(Create()) into systemEnqueue(Create()) directly
after createMailbox and registerForExecution from within
Dispatcher.attach() (resp. CallingThreadDispatcher.register() does its
own thing)
2012-02-13 15:33:31 +01:00
Patrik Nordwall
e017aeef08 Replace akka.actor.timeout with specfic settings. See #1808
* ActorTimeout (akka.actor.timeout) was used to all sorts of things.
* TestKit default-timeout
* TypedActor timeout for non void methods
* Transactor coordinated-timeout
* ZeroMQ new-socket-timeout
* And in various tests
2012-02-10 16:07:17 +01:00
Roland
4b71872aef fixing up final misnamers (createClassFor -> getClassFor) 2012-02-10 14:36:35 +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
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
Patrik Nordwall
09e13e271b Merge branch 'master' into wip-1310-err2-patriknw
Conflicts:
	akka-actor/src/main/scala/akka/dispatch/AbstractDispatcher.scala
	akka-cluster/src/main/scala/akka/cluster/Cluster.scala
	akka-cluster/src/main/scala/akka/cluster/TransactionLog.scala
	akka-remote/src/main/scala/akka/remote/netty/NettyRemoteSupport.scala
2012-02-03 13:57:28 +01:00
Patrik Nordwall
5033647176 Fixed things from review. See #1310 2012-02-01 17:38:12 +01:00
Patrik Nordwall
c447f46224 Some polish on the error handling. See #1310 2012-02-01 14:40:12 +01:00
Patrik Nordwall
2e1ad851b3 Not a running junit test, only verifies compilation 2012-02-01 11:53:46 +01:00
Viktor Klang
e57a48e9e2 Merge branch 'master' of github.com:jboner/akka 2012-02-01 10:10:40 +01:00
Viktor Klang
a950fe2d9b Switching to FJP as default in the tests 2012-02-01 10:10:13 +01:00
Roland Kuhn
fd6029ed96 Merge pull request #287 from jboner/wip-1759-FSM-cleanup-∂π
FSM: remove Ev extractor and move -> into companion object, see #1759
2012-02-01 00:24:21 -08:00
Roland
983a6d3ace FSM: remove Ev extractor and move -> into companion object, see #1759 2012-01-31 21:48:24 +01:00
Viktor Klang
dcebd1deb2 Moving the InternalGetActor message to the companion object and verifying that it's possible to call apply from Java 2012-01-31 21:38:20 +01:00
viktorklang
2169ce4b76 Merge pull request #280 from jboner/wip-1728-fjpool-√
Wip 1728 fjpool √
2012-01-31 01:22:51 -08:00
Viktor Klang
465c29107d Migrating tests to use the new config for dispatchers 2012-01-30 16:34:25 +01:00
Patrik Nordwall
d12d56a1ae Move hotswap stack into Actor trait. See #1717 2012-01-30 13:27:48 +01:00
Viktor Klang
2e834b08e2 Removing dead imports from testkit 2012-01-25 15:59:37 +01:00
Roland Kuhn
1399b048e1 Merge pull request #251 from jboner/wip-1719-ExtendedActorSystem-∂π
add ExtendedActorSystem to shield ActorSystemImpl
2012-01-24 06:36:05 -08:00
Roland Kuhn
dcdbca1167 Merge pull request #250 from jboner/wip-1714-withinTimeRange-patriknw
Improved API of OneForOneStrategy and AllForOneStrategy. See #1714
2012-01-24 04:13:36 -08:00
Roland
d5c23bcb76 add ExtendedActorSystem to shield ActorSystemImpl
- add provider, guardian, systemGuardian and deathWatch to it
- make ActorSystemImpl extend ExtendedActorSystem
- use ExtendedActorSystem for creating extensions, thereby limiting the
  access extensions get to just those four published methods.
2012-01-24 11:33:40 +01:00
Patrik Nordwall
2a6b7f9b03 Moved decider to separate parameter list, and implicit conversion from Seq[Throwable]. See #1714 2012-01-24 10:35:09 +01:00
Roland
ee5ae1068b Merge branch 'wip-1485-fsm-docs-∂π' 2012-01-24 09:35:35 +01:00
Patrik Nordwall
abc072ef0a Improved API of OneForOneStrategy and AllForOneStrategy. See #1714
* withinTimeRange: Duration
* Removed need for Options in API
2012-01-24 08:46:27 +01:00
Roland
2a0c4ca145 Merge branch 'wip-1581-patterns-ask' 2012-01-23 18:35:30 +01:00
Roland
5e11b2df9d add FSMDocSpec and improve FSM API
- don’t require Option[Duration] and its implicit conversion
- provider “->” extractor inside the FSM trait
2012-01-23 15:37:43 +01:00
Patrik Nordwall
66e0a7cf0b Moved definition of fault handler from Props to overridable method supervisorStrategy in Actor. See #1711
* New trait SupervisorStrategy for TypedActors
* Adjustments of docs
* Updated tests
2012-01-23 13:49:19 +01:00