public class HdfsDataStoreMessageHandler extends HdfsStoreMessageHandler
MessageHandler
handling Message
writing into hdfs using DataStoreWriter
.Constructor and Description |
---|
HdfsDataStoreMessageHandler(org.springframework.data.hadoop.store.DataStoreWriter<java.lang.String> storeWriter)
Instantiates a new hdfs data store message handler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doStop()
Subclasses may override this method with the stop behaviour.
|
protected void |
doWrite(org.springframework.messaging.Message<?> message)
Subclasses need to implement this method to handle
Message in its writer. |
protected void |
onInit() |
doStart, getPhase, handleMessageInternal, isAutoStartup, isRunning, setAutoStartup, setPhase, start, stop, stop
configureMetrics, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabled
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public HdfsDataStoreMessageHandler(org.springframework.data.hadoop.store.DataStoreWriter<java.lang.String> storeWriter)
storeWriter
- the store writerprotected void onInit() throws java.lang.Exception
onInit
in class org.springframework.integration.handler.AbstractMessageHandler
java.lang.Exception
protected void doStop()
HdfsStoreMessageHandler
HdfsStoreMessageHandler.lifecycleLock
.doStop
in class HdfsStoreMessageHandler
protected void doWrite(org.springframework.messaging.Message<?> message) throws java.lang.Exception
HdfsStoreMessageHandler
Message
in its writer.doWrite
in class HdfsStoreMessageHandler
message
- the message to writejava.lang.Exception