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
972f4b538f
Fix publishing and update organization (groupId)
...
- fix problem with double organization in pom
- fix scaladoc generation by adding class dir to doc classpath in akka-actor
- update organization to com.typesafe.akka
2011-10-06 15:44:15 +02:00
Jonas Bonér
78193d7a62
Added multi-jvm tests for remote actor configured with Random router.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-06 11:42:05 +02:00
Jonas Bonér
e4b66da0b0
Merge branch 'master' of github.com:jboner/akka
2011-10-06 11:34:48 +02:00
Jonas Bonér
182aff14a6
Added multi-jvm test for remote actor configured with RoundRobin router.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-05 18:45:47 +02:00
Jonas Bonér
9e580b09e3
Added multi-jvm test for remote actor configured with Direct router.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-05 18:45:26 +02:00
Jonas Bonér
d124f6e781
Added configuration based routing (direct, random and round-robin) to the remote actors created by the RemoteActorRefProvider, also changed the configuration to allow specifying multiple remote nodes for a remotely configured actor.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-05 18:44:46 +02:00
Peter Vlugter
6bb721d7e2
Remove the sun.tools.tree.FinallyStatement import
2011-10-05 18:00:13 +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
56f8f858be
Adding AbstractPromise to create an AtomicReferenceFieldUpdater to get rid of the AtomicReference allocation
2011-10-04 21:17:01 +02:00
Viktor Klang
c4508a3e26
Merge branch 'master' of github.com:jboner/akka
2011-10-04 20:10:41 +02:00
Viktor Klang
fec129e675
Preventing wasteful computation in BalancingDispatcher if buddy and receiver is the same guy
2011-10-04 20:10:27 +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
Roland
2252c38477
switch on force inlining of Mailbox one-liners
2011-10-04 19:40:49 +02:00
Roland
4b5c99e9bd
optimize Mailbox._status usage
...
- make Scheduled==4 to allow bitwise operations
- unfold become(status) into three methods for better inlining
- optimize patterns in setAsIdle away: table switch is probably slower
than a single conditional
- fix LoggingReceiveSpec glitch wrt. async stop()
2011-10-04 19:33:06 +02:00
Viktor Klang
4df9d621bb
Fixing DispatcherActorSpec timeout
2011-10-04 16:35:34 +02:00
Viktor Klang
d000a51e92
Removing the AtomicInteger in Mailbox and implementing it as a volatile int + AtomicIntegerFieldUpdater in AbstractMailbox.java
2011-10-04 15:22:41 +02:00
Viktor Klang
6b8ed8601b
Tidying up some of the CAS:es in the mailbox status management
2011-10-04 15:02:51 +02:00
Viktor Klang
df94449d9b
Merge remote branch 'origin/remove-dispatcherLock'
2011-10-04 14:21:12 +02:00
Viktor Klang
a718d8a408
Merge branch 'deathwatch'
2011-10-04 13:53:46 +02:00
Viktor Klang
393e997a64
Renaming InVMMonitoring
2011-10-04 13:48:25 +02:00
Viktor Klang
785e2a2636
Moving the cause into Recreate
2011-10-04 13:23:24 +02:00
Viktor Klang
5321d02f64
Removing actorClass from ActorRef signature, makes no sense from the perspective of distribution, and with async start it is racy
2011-10-03 20:47:56 +02:00
Viktor Klang
284a8c4d05
Removing getSupervisor and supervisor from ActorRef, doesn't make sense in a distributed setting
2011-10-03 20:29:41 +02:00
Viktor Klang
0f049d67e6
Removing ActorRef.isRunning - replaced in full by isShutdown, if it returns true the actor is forever dead, if it returns false, it might be (race)
2011-10-03 19:43:45 +02:00
Viktor Klang
a1593c0419
Fixing a logic error in the default DeathWatch
2011-10-03 17:43:28 +02:00
Viktor Klang
dcf4d35a32
Fixing the bookkeeping of monitors etc so that it's threadsafe
2011-10-03 17:20:10 +02:00
Viktor Klang
2e20fb579e
All tests pass! Supervision is in place and Monitoring (naïve impl) works as well
2011-10-03 15:42:58 +02:00
Viktor Klang
69768dbc96
Removing the old Supervision-DSL and replacing it with a temporary one
2011-09-30 14:52:07 +02:00
Viktor Klang
d9cc9e3105
Temporarily fixing RestartStrategySpec
2011-09-30 12:35:33 +02:00
Viktor Klang
7ae81b44fb
Fixing Ticket669Spec to use the new explicit Supervisor
2011-09-30 11:47:52 +02:00
Viktor Klang
897676ba26
Removing defaultDeployId from Props
2011-09-30 11:47:36 +02:00
Patrik Nordwall
fc64d8e525
Placed the plugin in package akka.sbt
2011-09-30 11:12:10 +02:00
Viktor Klang
c34b74e13c
Adding a todo for AtomicReferenceFieldUpdater in Future.scala
2011-09-29 17:20:59 +02:00
Viktor Klang
bea02321cd
Fixing the SchedulerSpec by introducing an explicit supervisor
2011-09-29 17:20:40 +02:00
Viktor Klang
4c06b559bc
Restructuring the ordering of recreating actor instances so it's more safe if the constructor fails on recreate
2011-09-29 17:20:21 +02:00
Viktor Klang
950b11850a
Improving the ActorPool code and fixing the tests for the new supervision
2011-09-29 16:00:37 +02:00
Viktor Klang
a12ee36151
Merge commit
2011-09-29 13:11:35 +02:00
Viktor Klang
d94f6de35e
Adding more tests to ActorLifeCycleSpec and the DeatchWatchSpec
2011-09-29 12:45:10 +02:00
Viktor Klang
8a876cc48a
Switched the signature of Props(self => Receive) to Props(context => Receive)
2011-09-29 12:44:52 +02:00
Roland
ece571a535
rename {Message,Mailbox}Handling.scala
2011-09-28 21:59:10 +02:00
Roland
ca22e04a87
fold Mailbox.dispatcherLock into _status
...
- gets rid of one field plus object plus allocation per mailbox
- retained same semantics for both roles for now (someone may try to
take atomic advantage of this unification later)
2011-09-28 21:58:04 +02:00
Jonas Bonér
0957e41d19
Renamed 'replication-factor' config element to 'nr-of-instances' and 'ReplicationFactor' case class to 'NrOfInstances'.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 19:42:12 +02:00
Jonas Bonér
16e4be6077
Now treating actor deployed and configured with Direct routing and LocalScope as a "normal" in-process actor (LocalActorRef).
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 19:28:49 +02:00
Jonas Bonér
20f1c8051c
Added misc tests for local configured routers: direct, round-robin and random.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 18:15:39 +02:00
Jonas Bonér
08c1e918f4
Fixed broken 'stop' method on RoutedActorRef, now shuts down its connections by sending out a 'Broadcast(PoisonPill)'.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 17:43:51 +02:00
Viktor Klang
03a5042e22
Switching to filterException
2011-09-28 15:10:19 +02:00
Viktor Klang
fed0cf7a42
Replacing ActorRestartSpec with ActorLifeCycleSpec
2011-09-28 15:00:26 +02:00
Jonas Bonér
5c49e6dfaa
Merge branch 'master' of github.com:jboner/akka
2011-09-28 14:50:18 +02:00
Jonas Bonér
9721dbc50a
Added configuration based routing for local ActorRefProvider, also moved replication-factor from 'cluster' section to generic section of config'
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 14:50:09 +02:00