Class DeltaTask.Block
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.DeltaTask.Block
-
- Enclosing class:
- DeltaTask
static final class DeltaTask.Block extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.ArrayList<DeltaTask.WeightedPath>
computeTopPaths()
(package private) int
cost()
(package private) void
partitionTasks()
(package private) DeltaWindow
stealWork(DeltaTask forThread)
-
-
-
Field Detail
-
MIN_TOP_PATH
private static final int MIN_TOP_PATH
- See Also:
- Constant Field Values
-
tasks
final java.util.List<DeltaTask> tasks
-
threads
final int threads
-
config
final PackConfig config
-
templateReader
final ObjectReader templateReader
-
dc
final DeltaCache dc
-
pm
final ThreadSafeProgressMonitor pm
-
list
final ObjectToPack[] list
-
beginIndex
final int beginIndex
-
endIndex
final int endIndex
-
totalWeight
private long totalWeight
-
bytesPerUnit
long bytesPerUnit
-
-
Constructor Detail
-
Block
Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)
-
-
Method Detail
-
cost
int cost()
-
stealWork
DeltaWindow stealWork(DeltaTask forThread)
-
partitionTasks
void partitionTasks()
-
computeTopPaths
private java.util.ArrayList<DeltaTask.WeightedPath> computeTopPaths()
-
-