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
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 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.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