Package org.syncany.config.to.RepoTO

Examples of org.syncany.config.to.RepoTO.ChunkerTO


  public static ChunkerTO createFixedChunkerTO() {
    Map<String, String> settings = new HashMap<String, String>();
    settings.put(Chunker.PROPERTY_SIZE, "32768");

    ChunkerTO chunkerTO = new ChunkerTO();
    chunkerTO.setType("fixed");
    chunkerTO.setSettings(settings);

    return chunkerTO;
  }
View Full Code Here


    RepoTO repoTO = new RepoTO();
    repoTO.setRepoId(new byte[] { 0x01, 0x02, 0x03 });

    // Create ChunkerTO and MultiChunkerTO
    MultiChunkerTO multiChunkerTO = createZipMultiChunkerTO();
    ChunkerTO chunkerTO = createFixedChunkerTO();
    repoTO.setChunkerTO(chunkerTO); // TODO [low] Chunker not configurable right now. Not used.
    repoTO.setMultiChunker(multiChunkerTO);

    // Create TransformerTO
    List<TransformerTO> transformerTOs = createTransformerTOs();
View Full Code Here

   
    // Cipher specs: --no-encryption, --advanced
    List<CipherSpec> cipherSpecs = getCipherSpecs(encryptionEnabled, advancedModeEnabled);

    // Chunkers (not configurable)
    ChunkerTO chunkerTO = getDefaultChunkerTO();
    MultiChunkerTO multiChunkerTO = getDefaultMultiChunkerTO();

    // Compression: --no-compression
    List<TransformerTO> transformersTO = getTransformersTO(compressionEnabled, cipherSpecs);
View Full Code Here

    return repoTO;
  }

  protected ChunkerTO getDefaultChunkerTO() {
    ChunkerTO chunkerTO = new ChunkerTO();

    chunkerTO.setType(FixedChunker.TYPE);
    chunkerTO.setSettings(new HashMap<String, String>());
    chunkerTO.getSettings().put(Chunker.PROPERTY_SIZE, "16");

    return chunkerTO;
  }
View Full Code Here

TOP

Related Classes of org.syncany.config.to.RepoTO.ChunkerTO

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.