public class CounterBasedErrorHandler extends java.lang.Object implements ErrorHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STORER_ERROR_COUNT |
static java.lang.String |
STORER_ERROR_HANDLER_COUNTER_GROUP |
static java.lang.String |
STORER_RECORD_COUNT |
Constructor and Description |
---|
CounterBasedErrorHandler() |
Modifier and Type | Method and Description |
---|---|
long |
getRecordCount(java.lang.String storeSignature) |
void |
onError(java.lang.String uniqueSignature,
java.lang.Exception e,
Tuple inputTuple)
Method invoked when an error occurs processing of tuple
|
void |
onSuccess(java.lang.String uniqueSignature)
Method invoked on success processing of tuple
|
public static final java.lang.String STORER_ERROR_HANDLER_COUNTER_GROUP
public static final java.lang.String STORER_ERROR_COUNT
public static final java.lang.String STORER_RECORD_COUNT
public void onSuccess(java.lang.String uniqueSignature)
ErrorHandler
onSuccess
in interface ErrorHandler
uniqueSignature
- a unique signature to identify the operatorpublic void onError(java.lang.String uniqueSignature, java.lang.Exception e, Tuple inputTuple)
ErrorHandler
onError
in interface ErrorHandler
uniqueSignature
- a unique signature to identify the operatore
- Exception encountered while processing inputinputTuple
- the tuple to store.public long getRecordCount(java.lang.String storeSignature)
Copyright © 2007-2017 The Apache Software Foundation