Class FullConnectivityChecker
java.lang.Object
org.eclipse.jgit.internal.transport.connectivity.FullConnectivityChecker
- All Implemented Interfaces:
ConnectivityChecker
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jgit.transport.ConnectivityChecker
ConnectivityChecker.ConnectivityCheckInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkCommitTree
(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) void
checkConnectivity
(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> haves, ProgressMonitor pm) Checks connectivity of the commit graph after pack uploading.private void
checkObjects
(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) private boolean
markStartAndKnownNodes
(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, Set<ObjectId> haves, ProgressMonitor pm)
-
Constructor Details
-
FullConnectivityChecker
public FullConnectivityChecker()
-
-
Method Details
-
checkConnectivity
public void checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> haves, ProgressMonitor pm) throws MissingObjectException, IOException Description copied from interface:ConnectivityChecker
Checks connectivity of the commit graph after pack uploading.- Specified by:
checkConnectivity
in interfaceConnectivityChecker
- Parameters:
connectivityCheckInfo
- Input for the connectivity check.haves
- Set of references known for client.pm
- Monitor to publish progress to.- Throws:
IOException
- an error occurred during connectivity checking.MissingObjectException
-
markStartAndKnownNodes
private boolean markStartAndKnownNodes(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, Set<ObjectId> haves, ProgressMonitor pm) throws IOException - Parameters:
connectivityCheckInfo
- Source for connectivity check.ow
- Walk which can also check blobs.haves
- Set of references known for client.pm
- Monitor to publish progress to.- Returns:
- true if at least one new node was marked.
- Throws:
IOException
- an error occurred during connectivity checking.
-
checkCommitTree
private void checkCommitTree(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) throws IOException - Parameters:
connectivityCheckInfo
- Source for connectivity check.ow
- Walk which can also check blobs.pm
- Monitor to publish progress to.- Throws:
IOException
- an error occurred during connectivity checking.
-
checkObjects
private void checkObjects(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, ObjectWalk ow, ProgressMonitor pm) throws IOException - Parameters:
connectivityCheckInfo
- Source for connectivity check.ow
- Walk which can also check blobs.pm
- Monitor to publish progress to.- Throws:
IOException
- an error occurred during connectivity checking.
-