Commit graph

48 commits

Author SHA1 Message Date
Viktor Klang
ed4bc1cf0b #1508 - Reducing closure wrapping in scheduler 2012-05-10 23:55:11 +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
Heiko Seeberger
8dbfbbe966 closes #2019: Use parentheses for arity-0 methods which are not referentially transparent 2012-04-24 16:38:21 +02:00
Patrik Nordwall
4753f4af02 Remove log warning on reschedule to stopped actor. See #1760 2012-02-01 11:42:27 +01:00
Jonas Bonér
9a7b234ec2 Changed copyright header to Typesafe.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-01-31 13:34:05 +01:00
Viktor Klang
f7a45c0e8f Removing dead imports from akka-actor 2012-01-25 15:38:04 +01:00
Roland
34a0f005b1 Merge branch 'master' into wip-1581-patterns-ask 2012-01-20 19:29:17 +01:00
Viktor Klang
03bc15feb1 #1692 - Adding config option for making the Scheduler daemonic 2012-01-19 20:55:27 +01:00
Roland
1daaee98aa Merge remote-tracking branch 'origin/master' into wip-1581-patterns-ask 2012-01-18 14:20:13 +01:00
Roland
8b14cd683d scaladoc for patterns 2012-01-18 13:26:11 +01:00
Patrik Nordwall
ac886a8660 Moved DefaultScheduler to Scheduler.scala file 2012-01-17 09:34:34 +01:00
Jonas Bonér
ce296b0481 Misc additions to, and rewrites and formatting of, the documentation.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-15 14:26:17 +01:00
Roland
cb85778b12 remove ActorRef.stop()
- replace ActorRef.stop() by ActorRefFactory.stop(child) everywhere
- ActorCell “optimizes” this to remove the child from its childrenRefs
  in order to allow immediate recycling of the name
- the lost soul must have a place, for which the Locker has been
  created, where Davy Jones will happily rebind the soul to his ship
  (i.e. set “parent” to the locker to avoid mem leak) and periodically
  revisit it (.stop(), in case of that being lost in comm failure,
  similar .watch() to re-check liveness)
2011-12-14 00:10:53 +01:00
Viktor Klang
34ddca0fda #1470 - Document Scheduler 2011-12-13 01:44:18 +01:00
Roland
d6fc97c48d introduce akka.actor.creation-timeout to make Jenkins happy
- I had reused akka.actor.timeout for ActorSystem.actorOf calls (which
  “ask” the guardian to create the actor), but 5sec proved too short for
  Jenkins
- CreationTimeout defaults to 30sec now, let’s hope Jenkins is not
  slower than _that_.
2011-12-06 16:36:49 +01:00
Roland
b2a8e4ccae document requirements of our Scheduler service 2011-12-06 09:27:32 +01:00
Patrik Nordwall
1f665ab4c6 Changed signatures of Scheduler for better api of by-name blocks 2011-12-02 17:13:46 +01:00
Henrik Engstrom
e2ad1088b0 Updated the scheduler implementation after feedback; changed Duration(x, timeunit) to more fluent 'x timeunit' and added ScalaDoc 2011-11-23 15:16:46 +01:00
Henrik Engstrom
7ca5a4161b Introduced Duration instead of explicit value + time unit in HWT, Scheduler and users of the schedule functionality. See #1291 2011-11-23 11:07:16 +01:00
Henrik Engstrom
1577f8bcb3 Updated after code review:
Removed logging
Slimmed down the Java code
Moved default scheduler
2011-11-10 16:31:50 +01:00
Henrik Engstrom
d1ebc1ed06 Added a Cancellable trait to encapsulate any specific scheduler implementations from leaking. Fixes #1286 2011-11-10 11:53:36 +01:00
Henrik Engstrom
896c906d03 Implemented HashedWheelTimer as the default scheduling mechanism in Akka. Fixes #1291 2011-11-10 11:32:26 +01:00
Roland
d1e0f411ef clean up application structure
- introduce common parent for guardian and systemGuardian
- install deathWatch chain to ensure proper shutdown upon guardian’s
  death
- re-install stdout logger before detaching default loggers
- await app termination after running AkkaSpec tests (max 5sec, with
  warning logged if not stopped)
2011-10-28 17:15:10 +02:00
Viktor Klang
379515771b Tidying up some superflous lines of code in Scheduler 2011-10-17 19:31:04 +02:00
Viktor Klang
050411bf3b Making a Java API for Scheduler (JScheduler) and an abstract class Scheduler that extends it, to make the Scheduler pluggable, moving it into AkkaApplication and migrating the code. 2011-10-17 18:35:36 +02:00
Roland
44b94643e5 Merge with Peter's work (i.e. merging master into tame-globals) 2011-10-13 14:17:07 +02:00
Roland
85b7accfd4 make EventHandler non-global
- add Logging trait for nicer interface
- add EventHandlerLogging class for offering the nice interface from
  app.log
- add eventHandler instance to app and use that for all internal logging
  (this means that some places (dispatchers, remoting) were infiltrated
  by app just to do logging, but I think we'll need app in there soon
  enough for other reasons)
2011-10-13 13:21:59 +02:00
Jonas Bonér
3e6decffc0 Removed the ActorRegistry, the different ActorRefProvider implementations now holds an Address->ActorRef registry. Looking up by UUID is gone together with all the other lookup methods such as 'foreach' etc. which do not make sense in a distributed env. 'shutdownAll' is also removed but will be replaced by parental supervision. 2011-10-10 14:02:33 +02:00
Roland
2381ec54d0 introduce AkkaApplication
- remove global Config
- pull everything which depended on it into new AkkaApplication
- leave EventHandler alone for the moment: that evil sucker gets his
  very own AkkaApplication("akka-reference.conf") until we have settled
  on an acceptable logging API without globals
- make akka-actor and akka-testkit compile
- TestKit uses implicit AkkaApplication passing for maximum convenience
- Actor object nearly completely removed, actor creation possible via
  ActorRefFactory interface which is implemented by AkkaApplication and
  ActorContext
- serialization of ActorRef is probably broken, and so is the reflective
  RemoteSupport (now needs AkkaApplication constructor arg)
- everything else is still broken, including akka-actor-tests, so this
  is of course all not runtime-tested
2011-10-06 21:19:46 +02:00
Peter Veentjer
1b1720d65a ticket #1048 2011-07-25 12:47:43 +03:00
Viktor Klang
321a9e064f Removing Scheduler.shutdown from public API and making the SchedulerSpec clean up after itself instead 2011-07-12 12:17:32 +02:00
Patrik Nordwall
02dbc4cbad Ticket 1005: Changed WeakReference to lookup by uuid 2011-07-12 10:26:34 +02:00
Viktor Klang
c8c12ab56b Fixing ticket #1005 by using WeakReference for LocalActorRefs 2011-07-11 15:21:29 +02:00
Viktor Klang
ac311a32c2 Fixing a visibility problem with Scheduler thread id 2011-07-09 19:17:49 +02:00
Patrik Nordwall
ce3586221c Added description of how to cancel scheduled task 2011-06-29 08:43:51 +02:00
Jonas Bonér
56db84f0a1 Uncommented failing leader election tests 2011-06-23 16:02:35 +02:00
Jonas Bonér
a7311c83e6 Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code 2011-05-18 17:25:30 +02:00
Patrik Nordwall
6576cd51e9 Scala style fixes, added parens for side effecting shutdown methods 2011-04-29 10:20:16 +02:00
Jonas Bonér
6429086b51 Moved EventHandler to 'akka.event' plus added 'error' method without exception param 2011-03-23 15:12:09 +01:00
Jonas Bonér
299f865156 Fixed bug with restarting supervised supervisor that had done linking in constructor + Changed all calls to EventHandler to use direct 'error' and 'warning' methods for improved performance 2011-03-18 23:04:48 +01:00
Jonas Bonér
f8ce3d541e Changed API for EventHandler and added support for log levels 2011-03-14 10:45:49 +01:00
Jonas Bonér
793ad9ac03 Renamed to EventHandler and added 'info, debug, warning and error' 2011-03-02 18:19:17 +01:00
Jonas Bonér
c4e2d73668 Added the ErrorHandler notifications to all try-catch blocks 2011-03-02 00:14:45 +01:00
Jonas Bonér
9354f0790c Removed logging 2011-02-28 22:54:32 +01:00
Viktor Klang
30f73c7ca4 Fixing SLF4J logging lib switch, insane API FTL 2010-11-30 12:00:58 +01:00
Viktor Klang
bc1ae7814b Fixing all %s into {} for logging 2010-11-24 13:53:53 +01:00
Viktor Klang
08abc15e8a Switching to raw SLF4J on internals 2010-11-24 13:42:41 +01:00
Viktor Klang
7040ef0f14 Added a root akka folder for source files for the docs to work properly, closing ticket #541 2010-11-20 22:26:26 +01:00
Renamed from akka-actor/src/main/scala/actor/Scheduler.scala (Browse further)