From 13f7fd396ef08ec3cdfac48f39f65adcbbfea4cb Mon Sep 17 00:00:00 2001 From: hkhang Date: Wed, 17 Feb 2010 06:01:26 +0000 Subject: [PATCH] *** empty log message *** --- .../Benchmarks/Recovery/FileSystem/java/FileSystem.java | 8 +------- .../src/Benchmarks/Recovery/Spider/java/LocalQuery.java | 8 -------- Robust/src/Benchmarks/Recovery/Spider/java/Spider.java | 5 +++++ 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/Robust/src/Benchmarks/Recovery/FileSystem/java/FileSystem.java b/Robust/src/Benchmarks/Recovery/FileSystem/java/FileSystem.java index 580cc0d8..6c4c9a77 100644 --- a/Robust/src/Benchmarks/Recovery/FileSystem/java/FileSystem.java +++ b/Robust/src/Benchmarks/Recovery/FileSystem/java/FileSystem.java @@ -196,12 +196,6 @@ public class FileSystem { } } - public Object read(HashMap mydhmap, String key) { - Object obj = mydhmap.get(key); - - return obj; - } - public static void main(String[] args) { String filename; @@ -209,7 +203,7 @@ public class FileSystem { filename = args[0]; } else { - System.out.println("./FileSystem.bin "); + System.out.println("usage: ./FileSystem.bin "); System.exit(0); } diff --git a/Robust/src/Benchmarks/Recovery/Spider/java/LocalQuery.java b/Robust/src/Benchmarks/Recovery/Spider/java/LocalQuery.java index 1beeadbe..e04e1cf5 100644 --- a/Robust/src/Benchmarks/Recovery/Spider/java/LocalQuery.java +++ b/Robust/src/Benchmarks/Recovery/Spider/java/LocalQuery.java @@ -23,14 +23,6 @@ public class LocalQuery { return path; } - public void outputFile() { - StringBuffer sb = new StringBuffer(hostname); - sb.append(path); - FileOutputStream fos = new FileOutputStream(sb.toString().replace('/','#')); - fos.write(response.toString().getBytes()); - fos.close(); - } - public String makewebcanonical(String page) { StringBuffer b = new StringBuffer(getHostName(page)); b.append("/"); diff --git a/Robust/src/Benchmarks/Recovery/Spider/java/Spider.java b/Robust/src/Benchmarks/Recovery/Spider/java/Spider.java index 229d2cb6..46226bd1 100644 --- a/Robust/src/Benchmarks/Recovery/Spider/java/Spider.java +++ b/Robust/src/Benchmarks/Recovery/Spider/java/Spider.java @@ -8,6 +8,11 @@ public class Spider { String firstmachine; String firstpage; + if ((args.length != 1) && (args.length != 2)) { + System.printString("usage: ./Spider [first page]\n"); + System.exit(0); + } + firstmachine = new String(args[0]); if (args.length == 2) { firstpage = new String(args[1]); -- 2.34.1