*** empty log message ***
authornavid <navid>
Wed, 28 Jan 2009 19:05:07 +0000 (19:05 +0000)
committernavid <navid>
Wed, 28 Jan 2009 19:05:07 +0000 (19:05 +0000)
Robust/Transactions/TransactionalIO/src/TransactionalIO/benchmarks/thread2.java

index 793c666b0a7542396ab1aae8e6bd3f2c88497373..daf89aafaf0733f17e51b50111b1e3511c17d6b8 100644 (file)
@@ -7,6 +7,9 @@ package TransactionalIO.benchmarks;
 
 import TransactionalIO.core.TransactionalFile;
 import TransactionalIO.interfaces.TransactionalProgram;
+import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 /**
  *
@@ -15,22 +18,26 @@ import TransactionalIO.interfaces.TransactionalProgram;
 public class thread2 implements TransactionalProgram{
 
     public void execute() {
-        TransactionalFile tf1 = (TransactionalFile) benchmark.TransactionalFiles.get("0");
-        //TransactionalFile tf1 = new TransactionalFile("/home/navid/output.text", "rw");
-        byte[] b = new byte[20];
-       // tf1.seek(20);
-        int i = tf1.read(b);
-        i = tf1.read(b);
-        i = tf1.read(b);
-        i = tf1.read(b);
-           i = tf1.read(b);
-              i = tf1.read(b);
-                 i = tf1.read(b);
-                    i = tf1.read(b);
-                       i = tf1.read(b);
-                          i = tf1.read(b);
-                             i = tf1.read(b);
-                                i = tf1.read(b);
+        try {
+            TransactionalFile tf1 = (TransactionalFile) benchmark.TransactionalFiles.get("0");
+            //TransactionalFile tf1 = new TransactionalFile("/home/navid/output.text", "rw");
+            byte[] b = new byte[20];
+            // tf1.seek(20);
+            int i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+            i = tf1.read(b);
+        } catch (IOException ex) {
+            Logger.getLogger(thread2.class.getName()).log(Level.SEVERE, null, ex);
+        }
                                 
 
     }