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