From 9d2ecae975b90ef46fb93fa04fc692108bd2ed60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Tue, 24 Apr 2012 16:40:59 +0200 Subject: Remove Broadcaster. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit – Broadcaster is not needed anymore with asynchronous RPC. --- .../benchmark/ExampleHttpServerActivity.java | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java (limited to 'same-android/src/main/java/com/orbekk/same/android/benchmark') diff --git a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java b/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java deleted file mode 100644 index 700030c..0000000 --- a/same-android/src/main/java/com/orbekk/same/android/benchmark/ExampleHttpServerActivity.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.orbekk.same.android.benchmark; - -import android.app.Activity; - -import com.orbekk.same.benchmark.ExampleServer; -import com.orbekk.same.benchmark.HttpClientBenchmark; -import com.orbekk.same.benchmark.HttpExampleServer; - -public class ExampleHttpServerActivity extends Activity { - public final HttpExampleServer server = new HttpExampleServer(); - - @Override public void onResume() { - super.onResume(); - try { - server.runServer(12000); - HttpClientBenchmark.benchmark( - "http://localhost:12000/HttpExampleService.json", - 100, 2000); - } catch (Exception e) { - e.printStackTrace(); - throw new RuntimeException(e); - } - } - - @Override public void onStop() { - super.onStop(); - try { - server.stopServer(); - } catch (Exception e) { - e.printStackTrace(); - throw new RuntimeException(e); - } - } -} -- cgit v1.2.3