flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1161773 - in /incubator/flume/branches/flume-728/flume-ng-core/src: main/java/org/apache/flume/Context.java main/java/org/apache/flume/Reporter.java test/java/org/apache/flume/TestContext.java test/java/org/apache/flume/TestReporter.java
Date Thu, 25 Aug 2011 21:57:31 GMT
Author: esammer
Date: Thu Aug 25 21:57:31 2011
New Revision: 1161773

URL: http://svn.apache.org/viewvc?rev=1161773&view=rev
Log:
- Removed Reporter for now. May need something like this in the future, but it's just cruft
at the moment.

Removed:
    incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Reporter.java
    incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestReporter.java
Modified:
    incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Context.java
    incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestContext.java

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Context.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Context.java?rev=1161773&r1=1161772&r2=1161773&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Context.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/Context.java
Thu Aug 25 21:57:31 2011
@@ -6,11 +6,9 @@ import java.util.Map;
 public class Context {
 
   private Map<String, Object> parameters;
-  private Reporter reporter;
 
   public Context() {
     parameters = new HashMap<String, Object>();
-    reporter = new Reporter();
   }
 
   public void put(String key, Object value) {
@@ -27,7 +25,7 @@ public class Context {
 
   @Override
   public String toString() {
-    return "{ parameters:" + parameters + " reporter:" + reporter + " }";
+    return "{ parameters:" + parameters + " }";
   }
 
   public Map<String, Object> getParameters() {
@@ -38,12 +36,4 @@ public class Context {
     this.parameters = parameters;
   }
 
-  public Reporter getReporter() {
-    return reporter;
-  }
-
-  public void setReporter(Reporter reporter) {
-    this.reporter = reporter;
-  }
-
 }

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestContext.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestContext.java?rev=1161773&r1=1161772&r2=1161773&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestContext.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/test/java/org/apache/flume/TestContext.java
Thu Aug 25 21:57:31 2011
@@ -1,6 +1,5 @@
 package org.apache.flume;
 
-import org.apache.flume.Context;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -24,9 +23,4 @@ public class TestContext {
         context.get("test", String.class));
   }
 
-  @Test
-  public void testReporter() {
-    Assert.assertNotNull(context.getReporter());
-  }
-
 }



Mime
View raw message