Package org.archive.io

Examples of org.archive.io.WriterPoolSettings


   */
  public void init() throws IOException {
    // TODO: check that all props have been set
    arcDir = DirMaker.ensureDir(arcDir.getAbsolutePath(),"arcPath");
    File[] files = { arcDir };
    WriterPoolSettings settings = getSettings(true, arcPrefix, files);
    pool = new ARCWriterPool(settings, MAX_POOL_WRITERS, MAX_POOL_WAIT);
  }
View Full Code Here


    }
  }
 
  private WriterPoolSettings getSettings(final boolean isCompressed,
      final String prefix, final File[] arcDirs) {
    return new WriterPoolSettings() {
      public long getMaxSize() {
        return ARCConstants.DEFAULT_MAX_ARC_FILE_SIZE;
      }

      public List<File> getOutputDirs() {
View Full Code Here

    LOGGER.info("Closed arc file named " +
        writer.getFile().getAbsolutePath());
  }
  private WriterPoolSettings getSettings(final boolean isCompressed,
      final String prefix, final List<File> arcDirs) {
    return new WriterPoolSettings() {
      public List<File> calcOutputDirs() {
        return arcDirs;
      }

      @SuppressWarnings({ "unchecked", "rawtypes" })
View Full Code Here

   */
  public void init() throws IOException {
    // TODO: check that all props have been set
    arcDir = DirMaker.ensureDir(arcDir.getAbsolutePath(),"arcPath");
    File[] files = { arcDir };
    WriterPoolSettings settings = getSettings(true, arcPrefix, files);
    pool = new ARCWriterPool(settings, poolWriters, maxPoolWait);
  }
View Full Code Here

    }
  }
 
  private WriterPoolSettings getSettings(final boolean isCompressed,
      final String prefix, final File[] arcDirs) {
    return new WriterPoolSettings() {
      public List<File> calcOutputDirs() {
        return Arrays.asList(arcDirs);
      }

      @SuppressWarnings({ "unchecked", "rawtypes" })
View Full Code Here

TOP

Related Classes of org.archive.io.WriterPoolSettings

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.