Package org.springframework.yarn.fs.LocalResourcesFactoryBean

Examples of org.springframework.yarn.fs.LocalResourcesFactoryBean.RawCopyEntry


    List<CopyEntry> copyEntries = new ArrayList<CopyEntry>();
    factory.setCopyEntries(copyEntries);
    factory.setHdfsEntries(new ArrayList<LocalResourcesFactoryBean.TransferEntry>());

    List<RawCopyEntry> rawEntries = new ArrayList<RawCopyEntry>();
    rawEntries.add(new RawCopyEntry(new byte[10], dir + "/rawContent1", false));
    factory.setRawCopyEntries(rawEntries);
    factory.afterPropertiesSet();

    SmartResourceLocalizer localizer = (SmartResourceLocalizer) factory.getObject();
    localizer.copy();
View Full Code Here


    List<CopyEntry> copyEntries = new ArrayList<CopyEntry>();
    factory.setCopyEntries(copyEntries);
    factory.setHdfsEntries(new ArrayList<LocalResourcesFactoryBean.TransferEntry>());

    List<RawCopyEntry> rawEntries = new ArrayList<RawCopyEntry>();
    rawEntries.add(new RawCopyEntry(new byte[10], "rawContent1", true));
    factory.setRawCopyEntries(rawEntries);
    factory.afterPropertiesSet();

    SmartResourceLocalizer localizer = (SmartResourceLocalizer) factory.getObject();
    localizer.setStagingDirectory(new Path(dir));
View Full Code Here

    return this;
  }

  @Override
  public LocalResourcesCopyConfigurer raw(String fileName, byte[] content, String dest) {
    rawEntries.add(new RawCopyEntry(content, dest + fileName, false));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.fs.LocalResourcesFactoryBean.RawCopyEntry

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.