You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2014/04/11 22:31:12 UTC

git commit: ACCUMULO-2659 added MRE constructor back and deprecated it

Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT f51d7bba0 -> 882cfc881


ACCUMULO-2659 added MRE constructor back and deprecated it


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/882cfc88
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/882cfc88
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/882cfc88

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 882cfc881f0e3d6fa504761bf456ebb6f3f61365
Parents: f51d7bb
Author: Keith Turner <kt...@apache.org>
Authored: Fri Apr 11 16:32:18 2014 -0400
Committer: Keith Turner <kt...@apache.org>
Committed: Fri Apr 11 16:32:18 2014 -0400

----------------------------------------------------------------------
 .../core/client/MutationsRejectedException.java | 23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/882cfc88/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java b/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
index fba2893..37233f5 100644
--- a/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
+++ b/core/src/main/java/org/apache/accumulo/core/client/MutationsRejectedException.java
@@ -51,6 +51,29 @@ public class MutationsRejectedException extends AccumuloException {
    *          server side errors
    * @param unknownErrors
    *          number of unknown errors
+   *          
+   * @deprecated since 1.6.0, see {@link #MutationsRejectedException(Instance, List, HashMap, Collection, int, Throwable)}
+   */
+  @Deprecated
+  public MutationsRejectedException(List<ConstraintViolationSummary> cvsList, HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
+      Collection<String> serverSideErrors, int unknownErrors, Throwable cause) {
+    super("# constraint violations : " + cvsList.size() + "  security codes: " + hashMap.values() + "  # server errors " + serverSideErrors.size()
+        + " # exceptions " + unknownErrors, cause);
+    this.cvsl = cvsList;
+    this.af = hashMap;
+    this.es = serverSideErrors;
+    this.unknownErrors = unknownErrors;
+  }
+  
+  /**
+   * @param cvsList
+   *          list of constraint violations
+   * @param hashMap
+   *          authorization failures
+   * @param serverSideErrors
+   *          server side errors
+   * @param unknownErrors
+   *          number of unknown errors
    */
   public MutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
       Collection<String> serverSideErrors, int unknownErrors, Throwable cause) {