incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wso...@apache.org
Subject svn commit: r747197 - in /incubator/olio/workload/rails/trunk/src/org/apache/olio/workload: fsloader/FileLoader.java loader/Comments.java loader/SocialEvent.java
Date Mon, 23 Feb 2009 23:23:58 GMT
Author: wsobel
Date: Mon Feb 23 23:23:58 2009
New Revision: 747197

URL: http://svn.apache.org/viewvc?rev=747197&view=rev
Log:
Fixed FileLoader ScaleFactor with new apache path

Modified:
    incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/fsloader/FileLoader.java
    incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/Comments.java
    incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/SocialEvent.java

Modified: incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/fsloader/FileLoader.java
URL: http://svn.apache.org/viewvc/incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/fsloader/FileLoader.java?rev=747197&r1=747196&r2=747197&view=diff
==============================================================================
--- incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/fsloader/FileLoader.java
(original)
+++ incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/fsloader/FileLoader.java
Mon Feb 23 23:23:58 2009
@@ -18,7 +18,7 @@
  */
 package com.sun.web20.fsloader;
 
-import com.sun.web20.util.ScaleFactors;
+import org.apache.olio.workload.util.ScaleFactors;
 
 import java.nio.channels.FileChannel;
 import java.io.FileInputStream;

Modified: incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/Comments.java
URL: http://svn.apache.org/viewvc/incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/Comments.java?rev=747197&r1=747196&r2=747197&view=diff
==============================================================================
--- incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/Comments.java
(original)
+++ incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/Comments.java
Mon Feb 23 23:23:58 2009
@@ -1,3 +1,4 @@
+
 package org.apache.olio.workload.loader;
 
 import com.sun.faban.driver.util.Random;
@@ -48,7 +49,7 @@
         ratings = new int[commentCount];
         for (int i = 0; i < users.length; i++) {
             users[i] = r.random(1, ScaleFactors.users);;
-            comments[i] = r.makeCString(10, 1000);
+            comments[i] = r.makeCString(250, 1000);
             ratings[i] = r.random(2, 5);
         }
         createdTimestamp = r.makeDateInInterval( //createdtimestamp

Modified: incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/SocialEvent.java
URL: http://svn.apache.org/viewvc/incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/SocialEvent.java?rev=747197&r1=747196&r2=747197&view=diff
==============================================================================
--- incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/SocialEvent.java
(original)
+++ incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/loader/SocialEvent.java
Mon Feb 23 23:23:58 2009
@@ -50,8 +50,8 @@
         ThreadResource tr = ThreadResource.getInstance();
         Random r = tr.getRandom();
         StringBuilder buffer = tr.getBuffer();
-        fields[0] = RandomUtil.randomText(r, 15, 20); //title
-        fields[1] = RandomUtil.randomText(r, 50, 495); // description
+        fields[0] = RandomUtil.randomText(r, 20, 50); //title
+        fields[1] = RandomUtil.randomText(r, 500, 2000); // description
         fields[2] = RandomUtil.randomPhone(r, buffer); //phone
         DateFormat dateFormat = tr.getDateFormat(); // eventtimestamp
         String eventDate = dateFormat.format(
@@ -62,7 +62,7 @@
         fields[3] = String.format("%s %02d:%s:00",
                                             eventDate, eventHr, eventMin);
         fields[4] = eventDate; // eventdate
-        fields[5] = RandomUtil.randomText(r, 25, 99); // summary
+        fields[5] = RandomUtil.randomText(r, 50, 200); // summary
         
         createdTimestamp = r.makeDateInInterval( //createdtimestamp
                 BASE_DATE, -540, 0);



Mime
View raw message