static final class DeltaTask.Block
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
beginIndex |
(package private) long |
bytesPerUnit |
(package private) PackConfig |
config |
(package private) DeltaCache |
dc |
(package private) int |
endIndex |
(package private) ObjectToPack[] |
list |
private static int |
MIN_TOP_PATH |
(package private) ThreadSafeProgressMonitor |
pm |
(package private) java.util.List<DeltaTask> |
tasks |
(package private) ObjectReader |
templateReader |
(package private) int |
threads |
private long |
totalWeight |
Constructor and Description |
---|
Block(int threads,
PackConfig config,
ObjectReader reader,
DeltaCache dc,
ThreadSafeProgressMonitor pm,
ObjectToPack[] list,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
private java.util.ArrayList<DeltaTask.WeightedPath> |
computeTopPaths() |
(package private) int |
cost() |
(package private) void |
partitionTasks() |
(package private) DeltaWindow |
stealWork(DeltaTask forThread) |
private static final int MIN_TOP_PATH
final java.util.List<DeltaTask> tasks
final int threads
final PackConfig config
final ObjectReader templateReader
final DeltaCache dc
final ThreadSafeProgressMonitor pm
final ObjectToPack[] list
final int beginIndex
final int endIndex
private long totalWeight
long bytesPerUnit
Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)
int cost()
DeltaWindow stealWork(DeltaTask forThread)
void partitionTasks()
private java.util.ArrayList<DeltaTask.WeightedPath> computeTopPaths()