public class DropAndLog<I extends Exceptional,O,C extends ErrorCollector<O>> extends Object implements ErrorHandler<I,O,C>
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONF_LOGGER_CLASS | 
| static String | CONF_LOGGER_LEVEL | 
| static String | CONF_LOGGER_NAME | 
| Constructor and Description | 
|---|
| DropAndLog(LogRenderer<I> logLineMaker) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Called at the close of the connector to clean up any internal resources. | 
| static <I extends Exceptional,O,C extends ErrorCollector<O>> | create(LogRenderer<I> logLineMaker) | 
| void | init(Properties properties)Called at the handler creation time to initialize any internal state or resources. | 
| HandlerResult | onError(I entry,
       C collector)Called when an exception or failure occurs in a part of the connector. | 
public static final String CONF_LOGGER_NAME
public static final String CONF_LOGGER_CLASS
public static final String CONF_LOGGER_LEVEL
public DropAndLog(LogRenderer<I> logLineMaker)
public static <I extends Exceptional,O,C extends ErrorCollector<O>> DropAndLog<I,O,C> create(LogRenderer<I> logLineMaker)
public void init(Properties properties)
ErrorHandlerinit in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>properties - Properties for this handler with handler name prefix stripped away.public HandlerResult onError(I entry, C collector) throws Exception
ErrorHandleronError in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>entry - information about the failure, normally includes operational data and error informationcollector - handler for accepting user reactions to the failure, like retrying with modified parametersException - In the event that the current failure should not be handled, and should halt the connector
 processing.public void close()
ErrorHandlerclose in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>