Class AbstractHandlerLoader<E extends ErrorHandler>
java.lang.Object
org.elasticsearch.hadoop.handler.impl.AbstractHandlerLoader<E>
- Type Parameters:
E- TheErrorHandlers being created.
- All Implemented Interfaces:
HandlerLoader<E>,org.elasticsearch.hadoop.serialization.SettingsAware
public abstract class AbstractHandlerLoader<E extends ErrorHandler>
extends Object
implements org.elasticsearch.hadoop.serialization.SettingsAware, HandlerLoader<E>
Performs the construction and initialization of ErrorHandler instances, implementations of which may be provided
by third parties.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected abstract Stringprotected Settingsprotected abstract EloadBuiltInHandler(AbstractHandlerLoader.NamedHandlers handlerName) Builds the integration specific built-in handler for the job described by the handler name.voidsetSettings(Settings settings)
-
Constructor Details
-
AbstractHandlerLoader
-
-
Method Details
-
setSettings
- Specified by:
setSettingsin interfaceorg.elasticsearch.hadoop.serialization.SettingsAware
-
getSettings
-
loadHandlers
- Specified by:
loadHandlersin interfaceHandlerLoader<E extends ErrorHandler>
-
getHandlersPropertyName
- Returns:
- the property name to use for getting the list of handler names
-
getHandlerPropertyName
- Returns:
- the prefix for creating the properties to use for getting handler specific settings
-
loadBuiltInHandler
Builds the integration specific built-in handler for the job described by the handler name.- Parameters:
handlerName- The built in handler implementation that one should provide- Returns:
- an instance of the built in handler
-