@Override
protected HdfsStoreMessageHandler createHandler() {
Assert.notNull(storeWriter, "Writer cannot be null for this factory");
HdfsStoreMessageHandler handler = null;
if (storeWriter instanceof PartitionDataStoreWriter) {
handler = new HdfsPartitionDataStoreMessageHandler((PartitionDataStoreWriter) storeWriter);
}
else {
handler = new HdfsDataStoreMessageHandler(storeWriter);
}
handler.setAutoStartup(autoStartup);