Top Description Constructors Methods
org.eclipse.jgit.internal.transport.connectivity

public final Class FullConnectivityChecker

extends Object
implements ConnectivityChecker
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.transport.ConnectivityChecker
Imports
java.io.IOException, java.util.Set, org.eclipse.jgit.errors.MissingObjectException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Constants, .ObjectId, .ObjectIdSubclassMap, .ProgressMonitor, org.eclipse.jgit.revwalk.ObjectWalk, .RevBlob, .RevCommit, .RevFlag, .RevObject, .RevSort, .RevTree, org.eclipse.jgit.transport.ConnectivityChecker, .ReceiveCommand, .ReceiveCommand.Result

A connectivity checker that uses the entire reference database to perform reachability checks when checking the connectivity of objects. If info.isCheckObjects() is set it will also check that objects referenced by deltas are either provided or reachable as well.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
checkCommitTree(ConnectivityChecker.ConnectivityCheckInfo
Source for connectivity check.
connectivityCheckInfo
,
ObjectWalk
Walk which can also check blobs.
ow
,
ProgressMonitor
Monitor to publish progress to.
pm
)

public void
checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo
Input for the connectivity check.
connectivityCheckInfo
,
Set<ObjectId>
Set of references known for client.
haves
,
ProgressMonitor
Monitor to publish progress to.
pm
)

Implements org.eclipse.jgit.transport.ConnectivityChecker.checkConnectivity.

Checks connectivity of the commit graph after pack uploading.

private void
checkObjects(ConnectivityChecker.ConnectivityCheckInfo
Source for connectivity check.
connectivityCheckInfo
,
ObjectWalk
Walk which can also check blobs.
ow
,
ProgressMonitor
Monitor to publish progress to.
pm
)

private boolean

Returns:

true if at least one new node was marked.
markStartAndKnownNodes
(ConnectivityChecker.ConnectivityCheckInfo
Source for connectivity check.
connectivityCheckInfo
,
ObjectWalk
Walk which can also check blobs.
ow
,
Set<ObjectId>
Set of references known for client.
haves
,
ProgressMonitor
Monitor to publish progress to.
pm
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FullConnectivityCheckerback to summary
public FullConnectivityChecker()

Method Detail

checkCommitTreeback to summary
private void checkCommitTree(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) throws IOException
Parameters
connectivityCheckInfo:ConnectivityChecker.ConnectivityCheckInfo

Source for connectivity check.

ow:ObjectWalk

Walk which can also check blobs.

pm:ProgressMonitor

Monitor to publish progress to.

Exceptions
IOException:
an error occurred during connectivity checking.
checkConnectivityback to summary
public void checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> haves, ProgressMonitor pm) throws MissingObjectException, IOException

Implements org.eclipse.jgit.transport.ConnectivityChecker.checkConnectivity.

Doc from org.eclipse.jgit.transport.ConnectivityChecker.checkConnectivity.

Checks connectivity of the commit graph after pack uploading.

Parameters
connectivityCheckInfo:ConnectivityChecker.ConnectivityCheckInfo

Input for the connectivity check.

haves:Set<ObjectId>

Set of references known for client.

pm:ProgressMonitor

Monitor to publish progress to.

Annotations
@Override
Exceptions
IOException:
an error occurred during connectivity checking.
checkObjectsback to summary
private void checkObjects(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) throws IOException
Parameters
connectivityCheckInfo:ConnectivityChecker.ConnectivityCheckInfo

Source for connectivity check.

ow:ObjectWalk

Walk which can also check blobs.

pm:ProgressMonitor

Monitor to publish progress to.

Exceptions
IOException:
an error occurred during connectivity checking.
markStartAndKnownNodesback to summary
private boolean markStartAndKnownNodes(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, Set<ObjectId> haves, ProgressMonitor pm) throws IOException
Parameters
connectivityCheckInfo:ConnectivityChecker.ConnectivityCheckInfo

Source for connectivity check.

ow:ObjectWalk

Walk which can also check blobs.

haves:Set<ObjectId>

Set of references known for client.

pm:ProgressMonitor

Monitor to publish progress to.

Returns:boolean

true if at least one new node was marked.

Exceptions
IOException:
an error occurred during connectivity checking.