Commit graph

12466 commits

Author SHA1 Message Date
Roland
172a579b3e add ReplyChannels[T] to model fully polymorphic channel forwarding
this enables

class F[T <: ChannelList : TypeTag](t: ChannelRef[T]) extends Channels[T] {
  channel[T] { (x, snd) => x -?-> t -!-> snd }
}

which can then be extended to bunching, filtering, transforming of
message streams.
2013-01-26 22:49:52 +01:00
Roland
6c1edc1f67 the great wrapping
- you can tell/ask WrappedMessage and it will be checked precisely and
  sent naked
- ask() always returns Future[WrappedMessage[_ <: ChannelList, LUB]]
- FutureOps.lub will collapse such a Future into Future[LUB]
- sending a Future[WrappedMessage[_, _]] to a ChannelRef will check it
  precisely and send naked
2013-01-26 22:49:51 +01:00
Roland
f5934b9cca the great beautification
- reify() all trees, no bricolage
- use rediscovered c.TypeTag factory to splice in calculated types
- give meaningful names to type parameters and humunguosly explode val
  names
2013-01-26 22:49:51 +01:00
Roland
e55e57060b finally found out how to splice types
- add Helpers.weakTT for producing a WeakTypeTag from a tpe
- use that to simplify Ask.scala (the others will follow)
- and this way make forwarding actually work
2013-01-26 22:49:46 +01:00
Johannes Rudolph
c8f8b55f01 use config.getBytes where appropriate 2013-01-26 10:55:39 +01:00
Johannes Rudolph
77675383f4 fix: skip selector when read is split up just because of ReceivedMessageSizeLimit 2013-01-26 10:44:44 +01:00
Johannes Rudolph
f6fb147afc aggregate received data as long as there's data in kernel buffers or 'received-message-size-limit' is reached, see #2886 2013-01-26 10:29:28 +01:00
Endre Sándor Varga
ce014ece35 Updated samples to run with the new remoting #2906 2013-01-25 16:12:08 +01:00
Patrik Nordwall
f12e11df46 Merge pull request #1040 from akka/wip-2895-cluster-singleton-patriknw
Cluster singleton actor pattern, see #2895
2013-01-25 05:02:46 -08:00
Patrik Nordwall
0c38a76c37 Cluster singleton actor pattern, see #2895
* ClusterSingletonManager
* ClusterSingletonManagerSpec multi-node test
* Use in cluster router with single master sample
* Extensive logging to be able to understand what is
  going on
* Java api
* Add cluster dependency to contrib
* Add contrib dependency to sample
* Scaladoc
* rst docs in contrib area, ref from cluster docs
2013-01-25 14:00:28 +01:00
Roland Kuhn
3031173370 Merge pull request #985 from Crossing-Tech/osgi-cluster
Concerning akka in osgi: akka-remote/cluster ActorRefProvider exposed to akka-actor
2013-01-25 04:21:39 -08:00
Roland Kuhn
16945b743c Merge pull request #1066 from jrudolph/wip-IO-fix-close-race-condition
fix checking for connection close in TcpConnectionSpec
2013-01-25 03:41:29 -08:00
drewhk
ac35256d85 Merge pull request #1063 from drewhk/wip-change-scheme-order-drewhk
Reversed protocol scheme order in Addresses
2013-01-25 03:34:48 -08:00
Roland Kuhn
aea3ff69f8 Merge pull request #1062 from akka/wip-2821-CTDMS-∂π
fix CallingThreadDispatcherModelSpec, see #2821
2013-01-25 03:08:11 -08:00
Endre Sándor Varga
8795c8dd3c Reversed order in which adapters are applied from config
Needed to be aligned with the new scheme format
2013-01-25 11:42:57 +01:00
Johannes Rudolph
e994267bf6 fix checking for connection close in TcpConnectionSpec
The fix was to only rely on actually selecting not also on checking
key.readyOps since that isn't necessarily reliable without selecting.
2013-01-25 10:06:49 +01:00
Christophe Pache
e6b1a280cd akka-actor and akka-osgi wrapped into one bundle (akka-osgi) taking care of the ActorSystem creation
The akka modules reference.conf are copied inside this bundle.
    Every other akka module is imported optionnaly,
      the same for com.google.protobuf (already imported in akka-remote)
2013-01-25 09:21:00 +01:00
Roland
c0e85c71ce fix CallingThreadDispatcherModelSpec, see #2821
The problem was that the “waves of actors” test leaves behind lots of
garbage for the CTD to clean up, and its own
CallingThreadDispatcherQueues.gc() then happens to run when the guardian
creates the top-level actor in the following test case, which takes
longer than 3 seconds to run. Fix it by making the GC interval 100ms
instead of 1sec so that the amount of garbage is limited.

Also, replacing .mapValues(...).filter(...) with
.foldLeft(.newBuilder)(...) makes it twice as fast.

And even more so: unregistering mailboxes upon actor termination removes
the cost nearly completely for the “waves of actors” case.
2013-01-25 08:12:24 +01:00
Roland
213b1cd3bb enable EPUB output also in online build 2013-01-24 22:39:55 +01:00
Roland
359aab07f3 show real error cause, not LARS shutdown failure, see #2950 2013-01-24 22:18:17 +01:00
Roland
c5e10ad2df add logging to LARS so bugs can actually be found, see #2950 2013-01-24 21:11:07 +01:00
drewhk
fe22c7515f Reversed protocol scheme order in Addresses 2013-01-24 17:23:51 +01:00
Roland
b6ad46e88c fix SchedulerSpec config, see #2941 2013-01-24 16:13:06 +01:00
Roland
2df179ab49 reenable EPUB on sbt-site 0.6.2, see #2938 2013-01-24 15:06:14 +01:00
Viktor Klang
68f3dd549d Merge branch 'wip-agent-rework-√' of github.com:akka/akka into wip-agent-rework-√ 2013-01-24 15:04:05 +01:00
drewhk
d83fb1294d Merge pull request #1058 from drewhk/fixed-hostname-resolution-drewhk
Fixed missing hostname setting in RemotingSpec
2013-01-24 05:38:19 -08:00
Endre Sándor Varga
f338acb3fb Fixed missing hostname setting in RemotingSpec 2013-01-24 14:35:46 +01:00
Roland
02f5da064b Merge branch 'tmp' 2013-01-24 13:53:56 +01:00
Derek Mahar
4848e82a9c various doc fixes (spelling, wrong words, clarity) 2013-01-24 13:52:53 +01:00
Roland Kuhn
ffb58cb9d0 Merge pull request #1052 from akka/wip-2915-testprobe-watch-∂π
don’t use the testActor.queue for probe.watch(), see #2915
2013-01-24 04:48:29 -08:00
Roland Kuhn
414fddf1d6 Merge pull request #1053 from akka/wip-2916-CTD-warning-∂π
document deadlock risk of TestProbe.watch(TestActorRef), see #2916
2013-01-24 04:45:49 -08:00
Roland Kuhn
04cf9dea0d Merge pull request #1054 from akka/wip-2928-log-postStop-failures-∂π
log failures in postStop, see #2928
2013-01-24 04:45:34 -08:00
Roland
405174d4c3 don’t use the testActor.queue for probe.watch(), see #2915 2013-01-24 13:44:54 +01:00
Roland
5dacfaeb38 fix-up Cluster’s complaint for too slow Scheduler, see #2904 2013-01-24 13:43:40 +01:00
Roland Kuhn
ebbfd77d50 Merge pull request #1047 from akka/wip-2798-ensuring-rich
Add 'requiring': like 'ensuring' but with 'require' semantics. Fixes #2798
2013-01-24 04:40:02 -08:00
drewhk
0b432de0d8 Merge pull request #1044 from drewhk/wip-2593-new-remoting-configuration-drewhk
Changed and documented new remoting configuration #2593
2013-01-24 04:28:21 -08:00
Endre Sándor Varga
99adbdfab4 Changed and documented new remoting configuration #2593 2013-01-24 12:35:05 +01:00
drewhk
9935337d8e Merge pull request #1057 from akka/wip-netty-port-patriknw
Change wrong netty port conf in tests
2013-01-24 03:23:50 -08:00
drewhk
a4c0c7139c Merge pull request #1043 from drewhk/wip-2833-ssl-blocking-handshake
Added blocking handshake for outbound SSL connections #2833
2013-01-24 03:23:07 -08:00
Endre Sándor Varga
580a2484a9 Added blocking handshake for outbound SSL connections #2833
- Eliminated "Promise passing style" and using future composition wherever possible
2013-01-24 10:21:33 +01:00
Patrik Nordwall
4a5695f9d8 Change wrong netty port conf in tests 2013-01-24 09:53:18 +01:00
Rich Dougherty
9bfbf10cea Add 'requiring': like 'ensuring' but with 'require' semantics. Fixes #2798 2013-01-24 16:17:41 +13:00
Roland Kuhn
65d86ba520 relax too tight timing in FSMTransitionSpec 2013-01-23 23:59:33 +01:00
Roland
a80b5269e6 log failures in postStop, see #2928 2013-01-23 23:53:44 +01:00
Roland
bb7a4b7d40 document deadlock risk of TestProbe.watch(TestActorRef), see #2916 2013-01-23 23:38:22 +01:00
Roland
40a67a4097 disable EPUB build until sbt-site is fixed, see #2938 2013-01-23 21:57:28 +01:00
Roland
b9c0e98d3d Java 6 again; plus forgot one copyright header 2013-01-23 21:02:41 +01:00
Roland Kuhn
7066b37077 Merge pull request #1027 from akka/wip-2904-timer-∂π
first cut of new AkkaTimer, see #2904
2013-01-23 11:06:41 -08:00
Roland
8dea20a1f1 LightArrayRevolverScheduler, see #2904
- based on a wheel (AtomicReferenceArray) from which atomic
  single-linked lists dangle
- no locks
- deterministic tests due to overridable time source
- also bring docs up to date
2013-01-23 19:57:44 +01:00
Viktor Klang
9522add9b7 Migrating Agents to greener pastures 2013-01-23 18:25:43 +01:00