Top Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.pack

pack-priv final Class DeltaTask

extends Object
implements Callable<Object>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Imports
java.io.IOException, java.util.ArrayDeque, .ArrayList, .Collections, .Iterator, .List, java.util.concurrent.Callable, org.eclipse.jgit.lib.ObjectReader, .ThreadSafeProgressMonitor, org.eclipse.jgit.storage.pack.PackConfig

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final DeltaTask.Block
private DeltaWindow
pack-priv static final long
private ObjectReader
pack-priv final ArrayDeque<DeltaTask.Slice>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public Object
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

pack-priv static int
pack-priv DeltaWindow
pack-priv synchronized DeltaTask.Slice
private void
pack-priv synchronized boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockback to summary
private final DeltaTask.Block block
dwback to summary
private DeltaWindow dw
MAX_METERback to summary
pack-priv static final long MAX_METER
orback to summary
private ObjectReader or
slicesback to summary
pack-priv final ArrayDeque<DeltaTask.Slice> slices

Constructor Detail

DeltaTaskback to summary
pack-priv DeltaTask(DeltaTask.Block b)

Method Detail

addback to summary
pack-priv void add(DeltaTask.Slice s)
callback to summary
public Object call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:Object

computed result

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
getAdjustedWeightback to summary
pack-priv static int getAdjustedWeight(ObjectToPack o)
initWindowback to summary
pack-priv DeltaWindow initWindow(DeltaTask.Slice s)
remainingback to summary
pack-priv synchronized DeltaTask.Slice remaining()
runWindowback to summary
private void runWindow(DeltaWindow w) throws IOException
tryStealWorkback to summary
pack-priv synchronized boolean tryStealWork(DeltaTask.Slice s)
org.eclipse.jgit.internal.storage.pack back to summary

pack-priv final Class DeltaTask.Block

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv long
pack-priv final PackConfig
pack-priv final DeltaCache
pack-priv final int
pack-priv final ObjectToPack[]
private static final int
pack-priv final ThreadSafeProgressMonitor
pack-priv final List<DeltaTask>
pack-priv final ObjectReader
pack-priv final int
private long

Constructor Summary

AccessConstructor and Description
pack-priv
Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)

Method Summary

Modifier and TypeMethod and Description
private ArrayList<DeltaTask.WeightedPath>
pack-priv int
cost()

pack-priv void
pack-priv synchronized DeltaWindow
stealWork(DeltaTask forThread)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beginIndexback to summary
pack-priv final int beginIndex
bytesPerUnitback to summary
pack-priv long bytesPerUnit
configback to summary
pack-priv final PackConfig config
dcback to summary
pack-priv final DeltaCache dc
endIndexback to summary
pack-priv final int endIndex
listback to summary
pack-priv final ObjectToPack[] list
MIN_TOP_PATHback to summary
private static final int MIN_TOP_PATH
pmback to summary
pack-priv final ThreadSafeProgressMonitor pm
tasksback to summary
pack-priv final List<DeltaTask> tasks
templateReaderback to summary
pack-priv final ObjectReader templateReader
threadsback to summary
pack-priv final int threads
totalWeightback to summary
private long totalWeight

Constructor Detail

Blockback to summary
pack-priv Block(int threads, PackConfig config, ObjectReader reader, DeltaCache dc, ThreadSafeProgressMonitor pm, ObjectToPack[] list, int begin, int end)

Method Detail

computeTopPathsback to summary
private ArrayList<DeltaTask.WeightedPath> computeTopPaths()
costback to summary
pack-priv int cost()
partitionTasksback to summary
pack-priv void partitionTasks()
stealWorkback to summary
pack-priv synchronized DeltaWindow stealWork(DeltaTask forThread)
org.eclipse.jgit.internal.storage.pack back to summary

pack-priv final Class DeltaTask.Slice

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
Slice(int b, int e)

Method Summary

Modifier and TypeMethod and Description
pack-priv final int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beginIndexback to summary
pack-priv final int beginIndex
endIndexback to summary
pack-priv final int endIndex

Constructor Detail

Sliceback to summary
pack-priv Slice(int b, int e)

Method Detail

sizeback to summary
pack-priv final int size()
org.eclipse.jgit.internal.storage.pack back to summary

pack-priv final Class DeltaTask.WeightedPath

extends Object
implements Comparable<DeltaTask.WeightedPath>
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.internal.storage.pack.DeltaTask.WeightedPath
All Implemented Interfaces
java.lang.Comparable

Field Summary

Modifier and TypeField and Description
pack-priv final DeltaTask.Slice
pack-priv final long

Constructor Summary

AccessConstructor and Description
pack-priv
WeightedPath(long weight, DeltaTask.Slice s)

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(DeltaTask.WeightedPath
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sliceback to summary
pack-priv final DeltaTask.Slice slice
weightback to summary
pack-priv final long weight

Constructor Detail

WeightedPathback to summary
pack-priv WeightedPath(long weight, DeltaTask.Slice s)

Method Detail

compareToback to summary
public int compareTo(DeltaTask.WeightedPath o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:DeltaTask.WeightedPath

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override