Package org.apache.accumulo.core.client
Class MutationsRejectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.accumulo.core.client.AccumuloException
-
- 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
Constructors Constructor Description MutationsRejectedException(AccumuloClient client, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)Creates Mutations rejected exceptionMutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)Deprecated.since 2.0.0, replaced byMutationsRejectedException(AccumuloClient, List, Map, Collection, int, Throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConstraintViolationSummary>getConstraintViolationSummaries()Collection<String>getErrorServers()Map<TabletId,Set<SecurityErrorCode>>getSecurityErrorCodes()intgetUnknownExceptions()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MutationsRejectedException
@Deprecated public MutationsRejectedException(Instance instance, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)
Deprecated.since 2.0.0, replaced byMutationsRejectedException(AccumuloClient, List, Map, Collection, int, Throwable)- Parameters:
cvsList- list of constraint violationshashMap- authorization failuresserverSideErrors- server side errorsunknownErrors- number of unknown errors- Since:
- 1.7.0
-
MutationsRejectedException
public MutationsRejectedException(AccumuloClient client, List<ConstraintViolationSummary> cvsList, Map<TabletId,Set<SecurityErrorCode>> hashMap, Collection<String> serverSideErrors, int unknownErrors, Throwable cause)
Creates Mutations rejected exception- Parameters:
client- AccumuloClientcvsList- list of constraint violationshashMap- authorization failuresserverSideErrors- server side errorsunknownErrors- number of unknown errors- Since:
- 2.0.0
-
-
Method Detail
-
getConstraintViolationSummaries
public List<ConstraintViolationSummary> getConstraintViolationSummaries()
- Returns:
- the internal list of constraint violations
-
getSecurityErrorCodes
public Map<TabletId,Set<SecurityErrorCode>> getSecurityErrorCodes()
- Returns:
- the internal mapping of TabletID to SecurityErrorCodes
-
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
-
-