org.apache.accumulo.core.client
Class MutationsRejectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.accumulo.core.client.AccumuloException
              extended by org.apache.accumulo.core.client.MutationsRejectedException
All Implemented Interfaces:
Serializable

public class MutationsRejectedException
extends AccumuloException

Communicate the failed mutations of a BatchWriter back to the client.

See Also:
Serialized Form

Constructor Summary
MutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)
           
MutationsRejectedException(List<ConstraintViolationSummary> cvsList, HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)
          Deprecated. since 1.6.0, see MutationsRejectedException(Instance, List, HashMap, Collection, int, Throwable)
 
Method Summary
 List<KeyExtent> getAuthorizationFailures()
          Deprecated. since 1.5, see getAuthorizationFailuresMap()
 Map<KeyExtent,Set<SecurityErrorCode>> getAuthorizationFailuresMap()
           
 List<ConstraintViolationSummary> getConstraintViolationSummaries()
           
 Collection<String> getErrorServers()
           
 int getUnknownExceptions()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutationsRejectedException

@Deprecated
public MutationsRejectedException(List<ConstraintViolationSummary> cvsList,
                                             HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
                                             Collection<String> serverSideErrors,
                                             int unknownErrors,
                                             Throwable cause)
Deprecated. since 1.6.0, see MutationsRejectedException(Instance, List, HashMap, Collection, int, Throwable)

Parameters:
cvsList - list of constraint violations
hashMap - authorization failures
serverSideErrors - server side errors
unknownErrors - number of unknown errors

MutationsRejectedException

public MutationsRejectedException(Instance instance,
                                  List<ConstraintViolationSummary> cvsList,
                                  HashMap<KeyExtent,Set<SecurityErrorCode>> hashMap,
                                  Collection<String> serverSideErrors,
                                  int unknownErrors,
                                  Throwable cause)
Parameters:
cvsList - list of constraint violations
hashMap - authorization failures
serverSideErrors - server side errors
unknownErrors - number of unknown errors
Method Detail

getConstraintViolationSummaries

public List<ConstraintViolationSummary> getConstraintViolationSummaries()
Returns:
the internal list of constraint violations

getAuthorizationFailures

@Deprecated
public List<KeyExtent> getAuthorizationFailures()
Deprecated. since 1.5, see getAuthorizationFailuresMap()

Returns:
the internal list of authorization failures

getAuthorizationFailuresMap

public Map<KeyExtent,Set<SecurityErrorCode>> getAuthorizationFailuresMap()
Returns:
the internal mapping of keyextent mappings to SecurityErrorCode
Since:
1.5.0

getErrorServers

public Collection<String> getErrorServers()
Returns:
A list of servers that had internal errors when mutations were written

getUnknownExceptions

public int getUnknownExceptions()
Returns:
a count of unknown exceptions that occurred during processing


Copyright © 2015 Apache Accumulo Project. All rights reserved.