accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject svn commit: r1452168 - in /accumulo/branches/1.5: core/src/main/java/org/apache/accumulo/core/client/ core/src/main/java/org/apache/accumulo/core/client/impl/ server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/
Date Mon, 04 Mar 2013 02:17:04 GMT
Author: elserj
Date: Mon Mar  4 02:17:04 2013
New Revision: 1452168

URL: http://svn.apache.org/r1452168
Log:
ACCUMULO-1002 Add a close method to ScannerBase and a no-op impl to ScannerOptions.

Modified:
    accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/ScannerBase.java
    accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/impl/ScannerOptions.java
    accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/NullScanner.java

Modified: accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/ScannerBase.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/ScannerBase.java?rev=1452168&r1=1452167&r2=1452168&view=diff
==============================================================================
--- accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/ScannerBase.java
(original)
+++ accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/ScannerBase.java
Mon Mar  4 02:17:04 2013
@@ -119,4 +119,9 @@ public interface ScannerBase extends Ite
    * @return the timeout configured for this scanner
    */
   public long getTimeout(TimeUnit timeUnit);
+
+  /**
+   * Closes any underlying connections on the scanner
+   */
+  public void close();
 }

Modified: accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/impl/ScannerOptions.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/impl/ScannerOptions.java?rev=1452168&r1=1452167&r2=1452168&view=diff
==============================================================================
--- accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/impl/ScannerOptions.java
(original)
+++ accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/impl/ScannerOptions.java
Mon Mar  4 02:17:04 2013
@@ -201,4 +201,9 @@ public class ScannerOptions implements S
   public long getTimeout(TimeUnit timeunit) {
     return timeunit.convert(timeOut, TimeUnit.MILLISECONDS);
   }
+
+  @Override
+  public void close() {
+    // Nothing needs to be closed
+  }
 }

Modified: accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/NullScanner.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/NullScanner.java?rev=1452168&r1=1452167&r2=1452168&view=diff
==============================================================================
--- accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/NullScanner.java
(original)
+++ accumulo/branches/1.5/server/src/main/java/org/apache/accumulo/server/monitor/servlets/trace/NullScanner.java
Mon Mar  4 02:17:04 2013
@@ -101,4 +101,6 @@ public class NullScanner implements Scan
     return 0;
   }
   
+  @Override
+  public void close() {}
 }



Mime
View raw message