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
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
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.context.IntegrationObjectSupport
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