Package org.springframework.xd.hadoop.fs

Examples of org.springframework.xd.hadoop.fs.DatasetWriterFactory


  }

  @Override
  public synchronized HdfsWritingMessageHandler getObject() throws Exception {
    if (handler == null) {
      DatasetWriterFactory writerFactory = new DatasetWriterFactory(this.datasetOperations);
      this.handler = new HdfsWritingMessageHandler(writerFactory);
      if (this.autoStartup != null) {
        this.handler.setAutoStartup(this.autoStartup);
      }
    }
View Full Code Here


        "org/springframework/xd/integration/hadoop/config/DatasetOutboundChannelAdapterParserTests.xml");
    EventDrivenConsumer adapter = context.getBean("adapter", EventDrivenConsumer.class);
    HdfsWritingMessageHandler handler = (HdfsWritingMessageHandler) new DirectFieldAccessor(adapter).getPropertyValue("handler");
    DirectFieldAccessor handlerAccessor = new DirectFieldAccessor(handler);
    assertEquals(false, handlerAccessor.getPropertyValue("autoStartup"));
    DatasetWriterFactory writerFactory = (DatasetWriterFactory) handlerAccessor.getPropertyValue("hdfsWriterFactory");
    DatasetOperations datasetOperations = (DatasetOperations) new DirectFieldAccessor(writerFactory).getPropertyValue("datasetOperations");
    assertEquals(context.getBean("datasetOperations"), datasetOperations);
    context.close();
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.hadoop.fs.DatasetWriterFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.