accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1432301 - /accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
Date Fri, 11 Jan 2013 21:53:40 GMT
Author: kturner
Date: Fri Jan 11 21:53:40 2013
New Revision: 1432301

URL: http://svn.apache.org/viewvc?rev=1432301&view=rev
Log:
ACCUMULO-878 added some documentation for new users to mock accumulo about mini accumulo cluster

Modified:
    accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java

Modified: accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java?rev=1432301&r1=1432300&r2=1432301&view=diff
==============================================================================
--- accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
(original)
+++ accumulo/trunk/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
Fri Jan 11 21:53:40 2013
@@ -37,6 +37,17 @@ import org.apache.accumulo.core.util.Tex
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.io.Text;
 
+/**
+ * Mock Accumulo provides an in memory inmplementation of the Accumulo client API. Its possible
that the behavior of this implementation may differ from the
+ * behavior of Accumulo. This could result in unit test that pass on Mock Accumulo and fail
on Accumulo or visa-vera. Documenting the differences would be
+ * difficult and is not done.
+ * 
+ * <p>
+ * An alternative to Mock Accumulo called MiniAccumuloCluster was introduced in Accumulo
1.5. MiniAccumuloCluster spins up actual Accumulo server processes, can
+ * be used for unit testing, and its behavior should match Accumulo. The drawback of MiniAccumuloCluster
is that its much slower than Mock Accumulo.
+ * 
+ */
+
 public class MockInstance implements Instance {
   
   static final String genericAddress = "localhost:1234";



Mime
View raw message