org.eclipse.jgit.internal.storage.pack.PackWriter
pack creation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PackStatistics.
POJO for accumulating the statistics. |
| public static class | PackStatistics.
Statistics about a single type of object (commits, tags, trees and blobs). |
| Modifier and Type | Field and Description |
|---|---|
| private PackStatistics. |
| Access | Constructor and Description |
|---|---|
| public | PackStatistics(PackStatistics.
the accumulator of the statistics accumulatorCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public PackStatistics. | Returns: information about this type of object in the pack.object type code, e.g. OBJ_COMMIT or OBJ_TREE. typeCode)Get information about this type of object in the pack. |
| public long | Returns: count of refs in the ref advertisement.Get the count of references in the ref advertisement. |
| public long | Returns: the count of objects that needed to be discovered through an object walk because they were not found in bitmap indices. Returns -1 if no bitmap indices were found.Get the count of objects that needed to be discovered through an object walk because they were not found in bitmap indices. |
| public Set | Returns: unmodifiable collection of objects that were shallow commits on the client.Get unmodifiable collection of objects that were shallow commits on the client. |
| public int | Returns: number of objects in the output pack that went through the delta search process in order to find a potential delta base.Get number of objects in the output pack that went through the delta search process in order to find a potential delta base. |
| public int | Returns: number of objects in the output pack that went through delta base search and found a suitable base. This is a subset ofgetDeltaSearchNonEdgeObjects().Get number of objects in the output pack that went through delta base search and found a suitable base. |
| public int | Returns: depth (in commits) the pack includes if shallow.Get depth (in commits) the pack includes if shallow. |
| public long | |
| public Set | Returns: unmodifiable collection of objects to be included in the pack. May benull if the pack was hand-crafted in a unit test.Get unmodifiable collection of objects to be included in the pack. |
| public String | Returns: formatted message string for display to clients.Get formatted message string for display to clients. |
| public long | Returns: count of client wants that were not advertised by the server.Get the count of client wants that were not advertised by the server. |
| public Map | Returns: a map containing ObjectType statistics.Get a map containing ObjectType statistics. |
| public long | Returns: amount of packfiles offloaded (sent as "packfile-uri")/Get amount of packfiles offloaded |
| public long | Returns: total size (in bytes) offloaded to HTTP downloads.Get total size (in bytes) offloaded |
| public long | Returns: time in milliseconds spent checking if the client has access to the commits they are requesting.Get time in milliseconds spent checking if the client has access to the commits they are requesting. |
| public long | Returns: number of deltas whose existing representation was reused in the output, as their base object was also output or was assumed present for a thin pack. This may be lower than the actual number of reused deltas if a cached pack was reused.Get number of deltas whose existing representation was reused in the output. |
| public long | Returns: number of objects whose existing representation was reused in the output. This count includesgetReusedDeltas().Get number of objects whose existing representation was reused in the output. |
| public List | Returns: unmodifiable list of the cached packs that were reused in the output, if any were selected for reuse.Get unmodifiable list of the cached packs that were reused in the output |
| public Set | Returns: unmodifiable collection of the root commits of the history.Get unmodifiable collection of the root commits of the history. |
| public long | Returns: size of the thin pack in bytes, if a thin pack was generated. A thin pack is created when the client already has objects and some deltas are created against those objects, or if a cached pack is being used and some deltas will reference objects in the cached pack. This size does not include the pack header or trailer.Get size of the thin pack in bytes. |
| public long | Returns: time in milliseconds spent on delta compression. This is observed wall-clock time and does not accurately track CPU time used when multiple threads were used to perform the delta compression.Get time in milliseconds spent on delta compression. |
| public long | Returns: time in milliseconds spent enumerating the objects that need to be included in the output. This time includes any restarts that occur when a cached pack is selected for reuse.Get time in milliseconds spent enumerating the objects that need to be included in the output. |
| public long | Returns: time for ref advertisement in ms.Time in ms spent in the negotiation phase. |
| public long | Returns: time in milliseconds spent matching existing representations against objects that will be transmitted, or that the client can be assumed to already have.Get time in milliseconds spent matching existing representations against objects that will be transmitted. |
| public long | Returns: time in milliseconds spent finding the sizes of all objects that will enter the delta compression search window. The sizes need to be known to better match similar objects together and improve delta compression ratios.Get time in milliseconds spent finding the sizes of all objects that will enter the delta compression search window. |
| public long | Returns: total time spent processing this pack.Get total time spent processing this pack. |
| public long | Returns: time in milliseconds spent writing the pack output, from start of header until end of trailer. The transfer speed can be approximated by dividinggetTotalBytes() by this value.Get time in milliseconds spent writing the pack output, from start of header until end of trailer. |
| public long | Returns: total number of bytes written. This size includes the pack header, trailer, thin pack, and reused cached pack(s).Get total number of bytes written. |
| public long | Returns: total number of deltas output. This may be lower than the actual number of deltas if a cached pack was reused.Get total number of deltas output. |
| public long | Returns: total number of objects output. This total includes the value ofgetTotalDeltas().Get total number of objects output. |
| public double | Returns: the average output speed in terms of bytes-per-second.getTotalBytes() / (getTimeWriting() / 1000.0).Get the average output speed in terms of bytes-per-second. |
| public long | Returns: number of trees traversed in the walk when writing the pack.Get number of trees traversed |
| public Set | Returns: unmodifiable collection of objects that should be excluded from the pack, as the peer that will receive the pack already has these objects.Get unmodifiable collection of objects that should be excluded from the pack |
| public long | |
| public boolean | Returns: true if the resulting pack file was a shallow pack.Whether the resulting pack file was a shallow pack. |
| statistics | back to summary |
|---|---|
| private PackStatistics. | |
| PackStatistics | back to summary |
|---|---|
| public PackStatistics(PackStatistics. Creates a new
| |
| byObjectType | back to summary |
|---|---|
| public PackStatistics. Get information about this type of object in the pack.
| |
| getAdvertised | back to summary |
|---|---|
| public long getAdvertised() Get the count of references in the ref advertisement.
| |
| getBitmapIndexMisses | back to summary |
|---|---|
| public long getBitmapIndexMisses() Get the count of objects that needed to be discovered through an object walk because they were not found in bitmap indices.
| |
| getClientShallowCommits | back to summary |
|---|---|
| public Set Get unmodifiable collection of objects that were shallow commits on the client. | |
| getDeltaSearchNonEdgeObjects | back to summary |
|---|---|
| public int getDeltaSearchNonEdgeObjects() Get number of objects in the output pack that went through the delta search process in order to find a potential delta base.
| |
| getDeltasFound | back to summary |
|---|---|
| public int getDeltasFound() Get number of objects in the output pack that went through delta base search and found a suitable base.
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() Get depth (in commits) the pack includes if shallow.
| |
| getHaves | back to summary |
|---|---|
| public long getHaves() Get the count of client haves.
| |
| getInterestingObjects | back to summary |
|---|---|
| public Set Get unmodifiable collection of objects to be included in the pack. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Get formatted message string for display to clients.
| |
| getNotAdvertisedWants | back to summary |
|---|---|
| public long getNotAdvertisedWants() Get the count of client wants that were not advertised by the server.
| |
| getObjectTypes | back to summary |
|---|---|
| public Map Get a map containing ObjectType statistics.
| |
| getOffloadedPackfiles | back to summary |
|---|---|
| public long getOffloadedPackfiles() Get amount of packfiles offloaded
| |
| getOffloadedPackfilesSize | back to summary |
|---|---|
| public long getOffloadedPackfilesSize() Get total size (in bytes) offloaded
| |
| getReachabilityCheckDuration | back to summary |
|---|---|
| public long getReachabilityCheckDuration() Get time in milliseconds spent checking if the client has access to the commits they are requesting.
| |
| getReusedDeltas | back to summary |
|---|---|
| public long getReusedDeltas() Get number of deltas whose existing representation was reused in the output.
| |
| getReusedObjects | back to summary |
|---|---|
| public long getReusedObjects() Get number of objects whose existing representation was reused in the output.
| |
| getReusedPacks | back to summary |
|---|---|
| public List Get unmodifiable list of the cached packs that were reused in the output
| |
| getRootCommits | back to summary |
|---|---|
| public Set Get unmodifiable collection of the root commits of the history. | |
| getThinPackBytes | back to summary |
|---|---|
| public long getThinPackBytes() Get size of the thin pack in bytes.
| |
| getTimeCompressing | back to summary |
|---|---|
| public long getTimeCompressing() Get time in milliseconds spent on delta compression.
| |
| getTimeCounting | back to summary |
|---|---|
| public long getTimeCounting() Get time in milliseconds spent enumerating the objects that need to be included in the output.
| |
| getTimeNegotiating | back to summary |
|---|---|
| public long getTimeNegotiating() Time in ms spent in the negotiation phase. For non-bidirectional transports (e.g., HTTP), this is only for the final request that sends back the pack file.
| |
| getTimeSearchingForReuse | back to summary |
|---|---|
| public long getTimeSearchingForReuse() Get time in milliseconds spent matching existing representations against objects that will be transmitted.
| |
| getTimeSearchingForSizes | back to summary |
|---|---|
| public long getTimeSearchingForSizes() Get time in milliseconds spent finding the sizes of all objects that will enter the delta compression search window.
| |
| getTimeTotal | back to summary |
|---|---|
| public long getTimeTotal() Get total time spent processing this pack.
| |
| getTimeWriting | back to summary |
|---|---|
| public long getTimeWriting() Get time in milliseconds spent writing the pack output, from start of header until end of trailer.
| |
| getTotalBytes | back to summary |
|---|---|
| public long getTotalBytes() Get total number of bytes written.
| |
| getTotalDeltas | back to summary |
|---|---|
| public long getTotalDeltas() Get total number of deltas output.
| |
| getTotalObjects | back to summary |
|---|---|
| public long getTotalObjects() Get total number of objects output.
| |
| getTransferRate | back to summary |
|---|---|
| public double getTransferRate() Get the average output speed in terms of bytes-per-second.
| |
| getTreesTraversed | back to summary |
|---|---|
| public long getTreesTraversed() Get number of trees traversed
| |
| getUninterestingObjects | back to summary |
|---|---|
| public Set Get unmodifiable collection of objects that should be excluded from the pack | |
| getWants | back to summary |
|---|---|
| public long getWants() Get the count of client wants.
| |
| isShallow | back to summary |
|---|---|
| public boolean isShallow() Whether the resulting pack file was a shallow pack.
| |
| Modifier and Type | Field and Description |
|---|---|
| public long | advertised
The count of references in the ref advertisement. |
| public long | bitmapIndexMisses
The count of objects that needed to be discovered through an object walk because they were not found in bitmap indices. |
| public Set | clientShallowCommits
The set of shallow commits on the client. |
| public int | deltaSearchNonEdgeObjects
The count of objects in the pack that went through the delta search process in order to find a potential delta base. |
| public int | deltasFound
The count of objects in the pack that went through delta base search and found a suitable base. |
| public int | depth
If a shallow pack, the depth in commits. |
| public long | haves
The count of client haves. |
| public Set | interestingObjects
The set of objects to be included in the pack. |
| public long | notAdvertisedWants
The count of wants that were not advertised by the server. |
| public PackStatistics. | objectTypes
Statistics about each object type in the pack (commits, tags, trees and blobs.) |
| public long | offloadedPackfiles
Amount of packfile uris sent to the client to download via HTTP. |
| public long | offloadedPackfileSize
Total size (in bytes) offloaded to HTTP downloads. |
| public long | reachabilityCheckDuration
Time in ms spent checking reachability. |
| public long | reusedDeltas
The count of reused deltas in the pack. |
| public long | reusedObjects
The count of reused objects in the pack. |
| public List | reusedPacks
The collection of reused packs in the upload. |
| public Set | rootCommits
Commits with no parents. |
| public long | thinPackBytes
The size of the thin pack in bytes, if a thin pack was generated. |
| public long | timeCompressing
Time in ms spent compressing the pack. |
| public long | timeCounting
Time in ms spent counting the objects that will go into the pack. |
| public long | timeNegotiating
Time in ms spent in the negotiation phase. |
| public long | timeSearchingForReuse
Time in ms spent searching for objects to reuse. |
| public long | timeSearchingForSizes
Time in ms spent searching for sizes of objects. |
| public long | timeWriting
Time in ms spent writing the pack. |
| public long | totalBytes
The count of total bytes in the pack. |
| public long | totalDeltas
The total count of deltas output. |
| public long | totalObjects
The total count of objects in the pack. |
| public long | treesTraversed
Number of trees traversed in the walk when writing the pack. |
| public Set | uninterestingObjects
The set of objects to be excluded from the pack. |
| public long | wants
The count of client wants. |
| Access | Constructor and Description |
|---|---|
| public |
| advertised | back to summary |
|---|---|
| public long advertised The count of references in the ref advertisement.
| |
| bitmapIndexMisses | back to summary |
|---|---|
| public long bitmapIndexMisses The count of objects that needed to be discovered through an object walk because they were not found in bitmap indices. | |
| clientShallowCommits | back to summary |
|---|---|
| public Set<ObjectId> clientShallowCommits The set of shallow commits on the client. | |
| deltaSearchNonEdgeObjects | back to summary |
|---|---|
| public int deltaSearchNonEdgeObjects The count of objects in the pack that went through the delta search process in order to find a potential delta base. | |
| deltasFound | back to summary |
|---|---|
| public int deltasFound The count of objects in the pack that went through delta base search and found a suitable base. This is a subset of deltaSearchNonEdgeObjects. | |
| depth | back to summary |
|---|---|
| public int depth If a shallow pack, the depth in commits. | |
| haves | back to summary |
|---|---|
| public long haves The count of client haves.
| |
| interestingObjects | back to summary |
|---|---|
| public Set<ObjectId> interestingObjects The set of objects to be included in the pack. | |
| notAdvertisedWants | back to summary |
|---|---|
| public long notAdvertisedWants The count of wants that were not advertised by the server.
| |
| objectTypes | back to summary |
|---|---|
| public PackStatistics. Statistics about each object type in the pack (commits, tags, trees and blobs.) | |
| offloadedPackfiles | back to summary |
|---|---|
| public long offloadedPackfiles Amount of packfile uris sent to the client to download via HTTP.
| |
| offloadedPackfileSize | back to summary |
|---|---|
| public long offloadedPackfileSize Total size (in bytes) offloaded to HTTP downloads.
| |
| reachabilityCheckDuration | back to summary |
|---|---|
| public long reachabilityCheckDuration Time in ms spent checking reachability.
| |
| reusedDeltas | back to summary |
|---|---|
| public long reusedDeltas The count of reused deltas in the pack. | |
| reusedObjects | back to summary |
|---|---|
| public long reusedObjects The count of reused objects in the pack. | |
| reusedPacks | back to summary |
|---|---|
| public List<CachedPack> reusedPacks The collection of reused packs in the upload. | |
| rootCommits | back to summary |
|---|---|
| public Set<ObjectId> rootCommits Commits with no parents. | |
| thinPackBytes | back to summary |
|---|---|
| public long thinPackBytes The size of the thin pack in bytes, if a thin pack was generated. | |
| timeCompressing | back to summary |
|---|---|
| public long timeCompressing Time in ms spent compressing the pack. | |
| timeCounting | back to summary |
|---|---|
| public long timeCounting Time in ms spent counting the objects that will go into the pack. | |
| timeNegotiating | back to summary |
|---|---|
| public long timeNegotiating Time in ms spent in the negotiation phase. For non-bidirectional transports (e.g., HTTP), this is only for the final request that sends back the pack file.
| |
| timeSearchingForReuse | back to summary |
|---|---|
| public long timeSearchingForReuse Time in ms spent searching for objects to reuse. | |
| timeSearchingForSizes | back to summary |
|---|---|
| public long timeSearchingForSizes Time in ms spent searching for sizes of objects. | |
| timeWriting | back to summary |
|---|---|
| public long timeWriting Time in ms spent writing the pack. | |
| totalBytes | back to summary |
|---|---|
| public long totalBytes The count of total bytes in the pack. | |
| totalDeltas | back to summary |
|---|---|
| public long totalDeltas The total count of deltas output. | |
| totalObjects | back to summary |
|---|---|
| public long totalObjects The total count of objects in the pack. | |
| treesTraversed | back to summary |
|---|---|
| public long treesTraversed Number of trees traversed in the walk when writing the pack.
| |
| uninterestingObjects | back to summary |
|---|---|
| public Set<ObjectId> uninterestingObjects The set of objects to be excluded from the pack. | |
| wants | back to summary |
|---|---|
| public long wants The count of client wants.
| |
| Accumulator | back to summary |
|---|---|
| public Accumulator() | |
| Modifier and Type | Class and Description |
|---|---|
| public static class | PackStatistics.
POJO for accumulating the ObjectType statistics. |
| Modifier and Type | Field and Description |
|---|---|
| private PackStatistics. |
| Access | Constructor and Description |
|---|---|
| public | ObjectType(PackStatistics.
the accumulator of the statistics accumulatorCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: total number of bytes written. This size includes the object headers as well as the compressed data. This size also includes all ofgetDeltaBytes().Get total number of bytes written |
| public long | Returns: number of delta bytes written. This size includes the object headers for the delta objects.Get number of delta bytes written |
| public long | Returns: total number of deltas output. This may be lower than the actual number of deltas if a cached pack was reused.Get total number of deltas output |
| public long | Returns: total number of objects output. This total includes the value ofgetDeltas().Get total number of objects output |
| public long | Returns: number of deltas whose existing representation was reused in the output, as their base object was also output or was assumed present for a thin pack. This may be lower than the actual number of reused deltas if a cached pack was reused.Get number of deltas whose existing representation was reused in the output |
| public long | Returns: number of objects whose existing representation was reused in the output. This count includesgetReusedDeltas().Get number of objects whose existing representation was reused in the output |
| objectType | back to summary |
|---|---|
| private PackStatistics. | |
| ObjectType | back to summary |
|---|---|
| public ObjectType(PackStatistics. Creates a new
| |
| getBytes | back to summary |
|---|---|
| public long getBytes() Get total number of bytes written
| |
| getDeltaBytes | back to summary |
|---|---|
| public long getDeltaBytes() Get number of delta bytes written
| |
| getDeltas | back to summary |
|---|---|
| public long getDeltas() Get total number of deltas output
| |
| getObjects | back to summary |
|---|---|
| public long getObjects() Get total number of objects output
| |
| getReusedDeltas | back to summary |
|---|---|
| public long getReusedDeltas() Get number of deltas whose existing representation was reused in the output
| |
| getReusedObjects | back to summary |
|---|---|
| public long getReusedObjects() Get number of objects whose existing representation was reused in the output
| |
| Modifier and Type | Field and Description |
|---|---|
| public long | bytes
Count of bytes for all objects of this type. |
| public long | cntDeltas
Count of deltas of this type. |
| public long | cntObjects
Count of objects of this type. |
| public long | deltaBytes
Count of delta bytes for objects of this type. |
| public long | reusedDeltas
Count of reused deltas of this type. |
| public long | reusedObjects
Count of reused objects of this type. |
| Access | Constructor and Description |
|---|---|
| public |
| bytes | back to summary |
|---|---|
| public long bytes Count of bytes for all objects of this type. | |
| cntDeltas | back to summary |
|---|---|
| public long cntDeltas Count of deltas of this type. | |
| cntObjects | back to summary |
|---|---|
| public long cntObjects Count of objects of this type. | |
| deltaBytes | back to summary |
|---|---|
| public long deltaBytes Count of delta bytes for objects of this type. | |
| reusedDeltas | back to summary |
|---|---|
| public long reusedDeltas Count of reused deltas of this type. | |
| reusedObjects | back to summary |
|---|---|
| public long reusedObjects Count of reused objects of this type. | |
| Accumulator | back to summary |
|---|---|
| public Accumulator() | |