esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r952122 - /incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
Date Mon, 07 Jun 2010 07:19:08 GMT
Author: rhirsch
Date: Mon Jun  7 07:19:07 2010
New Revision: 952122

URL: http://svn.apache.org/viewvc?rev=952122&view=rev
Log:
[ESME-59] Better documentation of our existing Scala code

Modified:
    incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala

Modified: incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala?rev=952122&r1=952121&r2=952122&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala Mon Jun  7 07:19:07
2010
@@ -179,7 +179,7 @@ class Boot {
     LiftRules.dispatch.prepend(RestAPI.dispatch)
     LiftRules.dispatch.append(API2.dispatch)
 
-    
+      // Functionality assocaited with ESME support of twitter api 
     LiftRules.httpAuthProtectedResource.prepend {
       case Req(TwitterAPI.ApiPath :: _,_,_) => Full(AuthRole("user"))
     } 
@@ -198,6 +198,7 @@ class Boot {
     Stats.makeGauge("users") {Distributor.getUsersCount}
     Stats.makeGauge("listener") {Distributor.getListenersCount}
 
+    // start Scala Actors used in ESME
     Distributor.touch
     SchedulerActor.touch
     MessagePullActor.touch
@@ -248,8 +249,11 @@ class Boot {
   private def makeUtf8(req: HTTPRequest) = {req.setCharacterEncoding("UTF-8")}
 }
 
+/*
+* Set up compass search environment
+*/
+
 object Compass {
-  // Set up Compass for search
   val conf = tryo(new CompassConfiguration()
       .configure(Props.get("compass_config_file") openOr "/props/compass.cfg.xml")
       .addClass((new Message).clazz))
@@ -260,6 +264,9 @@ object Compass {
     tryo(c.getSearchEngineIndexManager().createIndex())
 }
 
+/*
+* Logger to track request times
+*/
 
 object RequestAnalyzer {
   def analyze(req: Box[Req], time: Long, queries: List[(String, Long)]): Unit = {
@@ -271,6 +278,9 @@ object RequestAnalyzer {
   }
 }
 
+/*
+* Logger to dump session info
+*/
 object SessionInfoDumper extends LiftActor {
   private var lastTime = millis
 



Mime
View raw message