public class HdfsPartitionDataStoreMessageHandler extends HdfsStoreMessageHandler
MessageHandler
handling Message
writing into hdfs using PartitionDataStoreWriter
.Constructor and Description |
---|
HdfsPartitionDataStoreMessageHandler(org.springframework.data.hadoop.store.PartitionDataStoreWriter<java.lang.String,org.springframework.messaging.Message<?>> storePartitionWriter)
Instantiates a new hdfs partition 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, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public HdfsPartitionDataStoreMessageHandler(org.springframework.data.hadoop.store.PartitionDataStoreWriter<java.lang.String,org.springframework.messaging.Message<?>> storePartitionWriter)
storePartitionWriter
- the store partition 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