public class Configuration extends Object implements Cloneable, Serializable
Usage of a Configuration involves setting the member fields of
this object to thier appropriate values; thus, it is up to the
programmer to specify the strongSum, weakSum,
blockLength and strongSumLength to be used. The
other fields are optional.
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_LENGTH
The default block size.
|
int |
blockLength
The length of blocks to checksum.
|
byte[] |
checksumSeed
The seed for the checksum, to perturb the strong checksum and help
avoid collisions in plain rsync (or in similar applicaitons).
|
static int |
CHUNK_SIZE
The default chunk size.
|
int |
chunkSize
The maximum size of byte arrays to create, when they are needed.
|
boolean |
doRunLength
Whether or not to do run-length encoding when making Deltas.
|
MessageDigest |
strongSum
The message digest that computes the stronger checksum.
|
int |
strongSumLength
The effective length of the strong sum.
|
RollingChecksum |
weakSum
The rolling checksum.
|
| Constructor and Description |
|---|
Configuration() |
public static final int BLOCK_LENGTH
public static final int CHUNK_SIZE
public transient MessageDigest strongSum
public transient RollingChecksum weakSum
public int blockLength
public int strongSumLength
public boolean doRunLength
public byte[] checksumSeed
public int chunkSize
Copyright © 2021 McEvoy Software Ltd. All rights reserved.