Top Description Inners Fields Constructors Methods
org.eclipse.jgit.transport

public Class ReceivedPackStatistics

extends Object
Class Inheritance
Imports
org.eclipse.jgit.lib.Constants

Statistics about org.eclipse.jgit.transport.PackParser.
Since
4.6

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

number of bytes of objects appeared in both the pack sent by the client and the local database
getNumBytesDuplicated
()

Get number of bytes of objects already in the local database

public long

Returns:

number of bytes read from the input stream
getNumBytesRead
()

Get number of bytes read from the input stream

public long

Returns:

number of delta blob objects in the pack
getNumDeltaBlob
()

Get number of delta blob objects in the pack

public long

Returns:

number of delta commit objects in the pack
getNumDeltaCommit
()

Get number of delta commit objects in the pack

public long

Returns:

number of delta tag objects in the pack
getNumDeltaTag
()

Get number of delta tag objects in the pack

public long

Returns:

number of delta tree objects in the pack
getNumDeltaTree
()

Get number of delta tree objects in the pack

public long

Returns:

number of objects appeared in both the pack sent by the client and the local database
getNumObjectsDuplicated
()

Get number of objects already in the local database

public long

Returns:

number of offset delta objects in the pack
getNumOfsDelta
()

Get number of offset delta objects in the pack

public long

Returns:

number of ref delta objects in the pack
getNumRefDelta
()

Get number of ref delta objects in the pack

public long

Returns:

number of whole blob objects in the pack
getNumWholeBlob
()

Get number of whole blob objects in the pack

public long

Returns:

number of whole commit objects in the pack
getNumWholeCommit
()

Get number of whole commit objects in the pack

public long

Returns:

number of whole tag objects in the pack
getNumWholeTag
()

Get number of whole tag objects in the pack

public long

Returns:

number of whole tree objects in the pack
getNumWholeTree
()

Get number of whole tree objects in the pack

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

numBytesDuplicatedback to summary
private long numBytesDuplicated
numBytesReadback to summary
private long numBytesRead
numDeltaBlobback to summary
private long numDeltaBlob
numDeltaCommitback to summary
private long numDeltaCommit
numDeltaTagback to summary
private long numDeltaTag
numDeltaTreeback to summary
private long numDeltaTree
numObjectsDuplicatedback to summary
private long numObjectsDuplicated
numOfsDeltaback to summary
private long numOfsDelta
numRefDeltaback to summary
private long numRefDelta
numWholeBlobback to summary
private long numWholeBlob
numWholeCommitback to summary
private long numWholeCommit
numWholeTagback to summary
private long numWholeTag
numWholeTreeback to summary
private long numWholeTree

Constructor Detail

ReceivedPackStatisticsback to summary
public ReceivedPackStatistics()

Method Detail

getNumBytesDuplicatedback to summary
public long getNumBytesDuplicated()

Get number of bytes of objects already in the local database

Returns:long

number of bytes of objects appeared in both the pack sent by the client and the local database

Since
5.10
getNumBytesReadback to summary
public long getNumBytesRead()

Get number of bytes read from the input stream

Returns:long

number of bytes read from the input stream

getNumDeltaBlobback to summary
public long getNumDeltaBlob()

Get number of delta blob objects in the pack

Returns:long

number of delta blob objects in the pack

getNumDeltaCommitback to summary
public long getNumDeltaCommit()

Get number of delta commit objects in the pack

Returns:long

number of delta commit objects in the pack

getNumDeltaTagback to summary
public long getNumDeltaTag()

Get number of delta tag objects in the pack

Returns:long

number of delta tag objects in the pack

getNumDeltaTreeback to summary
public long getNumDeltaTree()

Get number of delta tree objects in the pack

Returns:long

number of delta tree objects in the pack

getNumObjectsDuplicatedback to summary
public long getNumObjectsDuplicated()

Get number of objects already in the local database

Returns:long

number of objects appeared in both the pack sent by the client and the local database

Since
5.10
getNumOfsDeltaback to summary
public long getNumOfsDelta()

Get number of offset delta objects in the pack

Returns:long

number of offset delta objects in the pack

getNumRefDeltaback to summary
public long getNumRefDelta()

Get number of ref delta objects in the pack

Returns:long

number of ref delta objects in the pack

getNumWholeBlobback to summary
public long getNumWholeBlob()

Get number of whole blob objects in the pack

Returns:long

number of whole blob objects in the pack

getNumWholeCommitback to summary
public long getNumWholeCommit()

Get number of whole commit objects in the pack

Returns:long

number of whole commit objects in the pack

getNumWholeTagback to summary
public long getNumWholeTag()

Get number of whole tag objects in the pack

Returns:long

number of whole tag objects in the pack

getNumWholeTreeback to summary
public long getNumWholeTree()

Get number of whole tree objects in the pack

Returns:long

number of whole tree objects in the pack

org.eclipse.jgit.transport back to summary

public Class ReceivedPackStatistics.Builder

extends Object
Class Inheritance

A builder for ReceivedPackStatistics.

Field Summary

Modifier and TypeField and Description
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ReceivedPackStatistics.Builder

Returns:

this
addDeltaObject
(int
OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG
type
)

Increment a delta object count.

public ReceivedPackStatistics.Builder

Returns:

this
addOffsetDelta
()

Increment offset delta

public ReceivedPackStatistics.Builder

Returns:

this
addRefDelta
()

Increment ref delta

public ReceivedPackStatistics.Builder

Returns:

this
addWholeObject
(int
OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG
type
)

Increment a whole object count.

pack-priv ReceivedPackStatistics
pack-priv ReceivedPackStatistics.Builder

Returns:

this
incrementNumBytesDuplicated
(long
additional bytes already in the local database
size
)

Increment additional bytes already in the local database

pack-priv ReceivedPackStatistics.Builder

Returns:

this
incrementObjectsDuplicated
()

Increment the duplicated object count.

public ReceivedPackStatistics.Builder

Returns:

this
setNumBytesRead
(long
number of bytes read from the input stream
numBytesRead
)

Set number of bytes read from the input stream

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

numBytesDuplicatedback to summary
private long numBytesDuplicated
numBytesReadback to summary
private long numBytesRead
numDeltaBlobback to summary
private long numDeltaBlob
numDeltaCommitback to summary
private long numDeltaCommit
numDeltaTagback to summary
private long numDeltaTag
numDeltaTreeback to summary
private long numDeltaTree
numObjectsDuplicatedback to summary
private long numObjectsDuplicated
numOfsDeltaback to summary
private long numOfsDelta
numRefDeltaback to summary
private long numRefDelta
numWholeBlobback to summary
private long numWholeBlob
numWholeCommitback to summary
private long numWholeCommit
numWholeTagback to summary
private long numWholeTag
numWholeTreeback to summary
private long numWholeTree

Constructor Detail

Builderback to summary
public Builder()

Method Detail

addDeltaObjectback to summary
public ReceivedPackStatistics.Builder addDeltaObject(int type)

Increment a delta object count.

Parameters
type:int

OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG

Returns:ReceivedPackStatistics.Builder

this

addOffsetDeltaback to summary
public ReceivedPackStatistics.Builder addOffsetDelta()

Increment offset delta

Returns:ReceivedPackStatistics.Builder

this

addRefDeltaback to summary
public ReceivedPackStatistics.Builder addRefDelta()

Increment ref delta

Returns:ReceivedPackStatistics.Builder

this

addWholeObjectback to summary
public ReceivedPackStatistics.Builder addWholeObject(int type)

Increment a whole object count.

Parameters
type:int

OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG

Returns:ReceivedPackStatistics.Builder

this

buildback to summary
pack-priv ReceivedPackStatistics build()
incrementNumBytesDuplicatedback to summary
pack-priv ReceivedPackStatistics.Builder incrementNumBytesDuplicated(long size)

Increment additional bytes already in the local database

Parameters
size:long

additional bytes already in the local database

Returns:ReceivedPackStatistics.Builder

this

Since
5.10
incrementObjectsDuplicatedback to summary
pack-priv ReceivedPackStatistics.Builder incrementObjectsDuplicated()

Increment the duplicated object count.

Returns:ReceivedPackStatistics.Builder

this

Since
5.10
setNumBytesReadback to summary
public ReceivedPackStatistics.Builder setNumBytesRead(long numBytesRead)

Set number of bytes read from the input stream

Parameters
numBytesRead:long

number of bytes read from the input stream

Returns:ReceivedPackStatistics.Builder

this