Package | Description |
---|---|
org.eclipse.jgit.internal.storage.dfs |
Distributed file system based repository storage.
|
Modifier and Type | Class and Description |
---|---|
private static class |
InMemoryRepository.MemPack |
Modifier and Type | Field and Description |
---|---|
(package private) DfsPackDescription |
BlockBasedFile.desc
Description of the associated pack file's storage.
|
private DfsPackDescription |
BlockBasedFile.LazyChannel.desc |
private DfsPackDescription |
DfsPackCompactor.outDesc |
(package private) DfsPackDescription |
DfsInserter.packDsc |
private DfsPackDescription |
DfsPackParser.packDsc
Name of the pack file, computed in
DfsPackParser.onPackHeader(long) . |
Modifier and Type | Field and Description |
---|---|
private java.util.List<DfsPackDescription> |
DfsGarbageCollector.newPackDesc |
private java.util.Comparator<DfsPackDescription> |
DfsObjDatabase.packComparator |
private java.util.List<DfsPackDescription> |
InMemoryRepository.MemObjDatabase.packs |
Modifier and Type | Method and Description |
---|---|
DfsPackDescription |
DfsPackDescription.clearPackStats()
Discard the pack statistics, if it was populated.
|
DfsPackDescription |
DfsPackParser.getPackDescription()
Get description of the imported pack, if one was made.
|
DfsPackDescription |
DfsPackFile.getPackDescription()
Get description that was originally used to configure this pack file.
|
DfsPackDescription |
DfsCachedPack.getPackDescription()
Get the description of the pack.
|
DfsPackDescription |
DfsReftable.getPackDescription()
Get description that was originally used to configure this file.
|
protected abstract DfsPackDescription |
DfsObjDatabase.newPack(DfsObjDatabase.PackSource source)
Generate a new unique name for a pack file.
|
protected DfsPackDescription |
InMemoryRepository.MemObjDatabase.newPack(DfsObjDatabase.PackSource source) |
protected DfsPackDescription |
DfsObjDatabase.newPack(DfsObjDatabase.PackSource source,
long estimatedPackSize)
Generate a new unique name for a pack file.
|
DfsPackDescription |
DfsPackDescription.setBlockSize(PackExt ext,
int blockSize)
Set blockSize of the file, in bytes.
|
DfsPackDescription |
DfsPackDescription.setDeltaCount(long cnt)
Set number of delta compressed objects in the pack.
|
DfsPackDescription |
DfsPackDescription.setEstimatedPackSize(long estimatedPackSize)
Set estimated size of the .pack file in bytes.
|
DfsPackDescription |
DfsPackDescription.setFileSize(PackExt ext,
long bytes)
Set size of the file in bytes.
|
DfsPackDescription |
DfsPackDescription.setIndexVersion(int version)
Set the version of the index file written.
|
DfsPackDescription |
DfsPackDescription.setLastModified(long timeMillis)
Set time the pack was created, in milliseconds.
|
DfsPackDescription |
DfsPackDescription.setMaxUpdateIndex(long max)
Set maxUpdateIndex for the reftable.
|
DfsPackDescription |
DfsPackDescription.setMinUpdateIndex(long min)
Set minUpdateIndex for the reftable.
|
DfsPackDescription |
DfsPackDescription.setObjectCount(long cnt)
Set number of objects in the pack.
|
DfsPackDescription |
DfsPackDescription.setPackSource(DfsObjDatabase.PackSource source)
Set the source of the pack.
|
(package private) DfsPackDescription |
DfsPackDescription.setPackStats(PackStatistics stats) |
private DfsPackDescription |
DfsGarbageCollector.writePack(DfsObjDatabase.PackSource source,
PackWriter pw,
ProgressMonitor pm,
long estimatedPackSize) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DfsPackDescription> |
DfsPackCompactor.getNewPacks()
Get new packs created by this compaction.
|
java.util.List<DfsPackDescription> |
DfsGarbageCollector.getNewPacks()
Get new packs created by this compaction.
|
java.util.Collection<DfsPackDescription> |
DfsPackCompactor.getSourcePacks()
Get all of the source packs that fed into this compaction.
|
java.util.Set<DfsPackDescription> |
DfsGarbageCollector.getSourcePacks()
Get all of the source packs that fed into this compaction.
|
protected abstract java.util.List<DfsPackDescription> |
DfsObjDatabase.listPacks()
List the available pack files.
|
protected java.util.List<DfsPackDescription> |
InMemoryRepository.MemObjDatabase.listPacks() |
static java.util.Comparator<DfsPackDescription> |
DfsPackDescription.objectLookupComparator()
Comparator for packs when looking up objects in indexes.
|
static java.util.Comparator<DfsPackDescription> |
DfsPackDescription.objectLookupComparator(java.util.Comparator<DfsObjDatabase.PackSource> packSourceComparator)
Comparator for packs when looking up objects in indexes.
|
private static java.util.Map<DfsPackDescription,DfsPackFile> |
DfsObjDatabase.packMap(DfsObjDatabase.PackList old) |
(package private) static java.util.Comparator<DfsPackDescription> |
DfsPackDescription.reftableComparator() |
private static java.util.Map<DfsPackDescription,DfsReftable> |
DfsObjDatabase.reftableMap(DfsObjDatabase.PackList old) |
(package private) static java.util.Comparator<DfsPackDescription> |
DfsPackDescription.reuseComparator() |
private java.util.Collection<DfsPackDescription> |
DfsPackCompactor.toPrune() |
private java.util.Set<DfsPackDescription> |
DfsGarbageCollector.toPrune() |
private java.util.Set<DfsPackDescription> |
ReftableBatchRefUpdate.toPruneTopOfStack() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
DfsObjDatabase.addReftable(DfsPackDescription add,
java.util.Set<DfsPackDescription> remove) |
private void |
DfsGarbageCollector.compactReftable(DfsPackDescription pack,
ReftableCompactor compact) |
protected abstract ReadableChannel |
DfsObjDatabase.openFile(DfsPackDescription desc,
PackExt ext)
Open a pack, pack index, or other related file for reading.
|
protected ReadableChannel |
InMemoryRepository.MemObjDatabase.openFile(DfsPackDescription desc,
PackExt ext) |
private boolean |
DfsGarbageCollector.packIsCoalesceableGarbage(DfsPackDescription d,
long now) |
private boolean |
DfsGarbageCollector.packIsExpiredGarbage(DfsPackDescription d,
long now) |
private boolean |
ReftableBatchRefUpdate.packOnlyContainsReftable(DfsPackDescription desc) |
protected abstract DfsOutputStream |
DfsObjDatabase.writeFile(DfsPackDescription desc,
PackExt ext)
Open a pack, pack index, or other related file for writing.
|
protected DfsOutputStream |
InMemoryRepository.MemObjDatabase.writeFile(DfsPackDescription desc,
PackExt ext) |
private static void |
DfsPackCompactor.writeIndex(DfsObjDatabase objdb,
DfsPackDescription pack,
PackWriter pw) |
private static void |
DfsPackCompactor.writePack(DfsObjDatabase objdb,
DfsPackDescription pack,
PackWriter pw,
ProgressMonitor pm) |
(package private) PackIndex |
DfsInserter.writePackIndex(DfsPackDescription pack,
byte[] packHash,
java.util.List<PackedObjectInfo> list) |
private void |
DfsPackCompactor.writeReftable(DfsObjDatabase objdb,
DfsPackDescription pack,
ReftableCompactor compact) |
private void |
DfsGarbageCollector.writeReftable(DfsPackDescription pack) |
private void |
DfsGarbageCollector.writeReftable(DfsPackDescription pack,
java.util.Collection<Ref> refs) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
DfsObjDatabase.addReftable(DfsPackDescription add,
java.util.Set<DfsPackDescription> remove) |
protected void |
DfsObjDatabase.commitPack(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replaces)
Commit a pack and index pair that was written to the DFS.
|
protected void |
DfsObjDatabase.commitPack(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replaces)
Commit a pack and index pair that was written to the DFS.
|
protected abstract void |
DfsObjDatabase.commitPackImpl(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replaces)
Implementation of pack commit.
|
protected abstract void |
DfsObjDatabase.commitPackImpl(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replaces)
Implementation of pack commit.
|
protected void |
InMemoryRepository.MemObjDatabase.commitPackImpl(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replace) |
protected void |
InMemoryRepository.MemObjDatabase.commitPackImpl(java.util.Collection<DfsPackDescription> desc,
java.util.Collection<DfsPackDescription> replace) |
protected abstract void |
DfsObjDatabase.rollbackPack(java.util.Collection<DfsPackDescription> desc)
Try to rollback a pack creation.
|
protected void |
InMemoryRepository.MemObjDatabase.rollbackPack(java.util.Collection<DfsPackDescription> desc) |
void |
DfsObjDatabase.setPackComparator(java.util.Comparator<DfsPackDescription> packComparator)
Set the comparator used when searching for objects across packs.
|
Constructor and Description |
---|
BlockBasedFile(DfsBlockCache cache,
DfsPackDescription desc,
PackExt ext) |
DfsPackFile(DfsBlockCache cache,
DfsPackDescription desc)
Construct a reader for an existing, packfile.
|
DfsReftable(DfsBlockCache cache,
DfsPackDescription desc)
Construct a reader for an existing reftable.
|
DfsReftable(DfsPackDescription desc)
Construct a reader for an existing reftable.
|
LazyChannel(DfsReader ctx,
DfsPackDescription desc,
PackExt ext) |