esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r884478 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala
Date Thu, 26 Nov 2009 09:40:54 GMT
Author: vdichev
Date: Thu Nov 26 09:40:54 2009
New Revision: 884478

URL: http://svn.apache.org/viewvc?rev=884478&view=rev
Log:
Formatting indentation

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala?rev=884478&r1=884477&r2=884478&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala
(original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/SchedulerActor.scala
Thu Nov 26 09:40:54 2009
@@ -57,28 +57,28 @@
 
 
   private class SchedulerActor(messageProcessor: LiftActor, 
-			       user: Long, 
-			       everySeconds: Int, 
-			       reason: MailboxReason) extends LiftActor {
+                               user: Long, 
+                               everySeconds: Int, 
+                               reason: MailboxReason) extends LiftActor {
     private case object DoItDude
     private var running = true
     
     private def setupPing() {
       if (running)
-	ActorPing.schedule(this, DoItDude, everySeconds * 1000L)
+        ActorPing.schedule(this, DoItDude, everySeconds * 1000L)
     }
     
     setupPing()
     
     protected def messageHandler: PartialFunction[Any, Unit] = {
       case DoItDude =>
-	if (running) {
-	  sendMessage()
-	  setupPing()
-	}
+        if (running) {
+          sendMessage()
+          setupPing()
+        }
 
       case ByeBye =>
-	running = false
+        running = false
     }
       
     def sendMessage() {
@@ -86,18 +86,18 @@
       val dateString = TimeHelpers.toInternetDate(now)
       Message.create.author(user).
       when(now).
-	source("every").
+        source("every").
       setTextAndTags("Regularly scheduled action: " + dateString, Nil, Empty).
       foreach{ msg =>
         // Noisy & can't be rejected
           // if (msg.save) {
         messageProcessor ! Distributor.AddMessageToMailbox(user, msg, reason)
               // }
-            }
-            Stats incr "schedulerMessagesCreated"
-            Stats incr "messagesCreated"
-            Stats incr "schedulerMessagesCreated"
-            Stats incr "messagesCreated"
+      }
+      Stats incr "schedulerMessagesCreated"
+      Stats incr "messagesCreated"
+      Stats incr "schedulerMessagesCreated"
+      Stats incr "messagesCreated"
     }
     
   }



Mime
View raw message