Top Description Inners Methods
org.eclipse.jgit.transport

public Interface ConnectivityChecker

Known Direct Implementers
org.eclipse.jgit.internal.transport.connectivity.FullConnectivityChecker, org.eclipse.jgit.internal.transport.connectivity.IterativeConnectivityChecker
Imports
java.io.IOException, java.util.List, .Set, org.eclipse.jgit.lib.ObjectId, .ProgressMonitor, .Repository, org.eclipse.jgit.revwalk.RevWalk

Checks that a received pack only depends on objects which are reachable from a defined set of references.
Since
5.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ConnectivityChecker.ConnectivityCheckInfo

POJO which is used to pass all information which is needed to perform connectivity check.

Method Summary

Modifier and TypeMethod and Description
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
)

Checks connectivity of the commit graph after pack uploading.

Method Detail

checkConnectivityback to summary
public void checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> haves, ProgressMonitor pm) throws IOException

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.

Exceptions
IOException:
an error occurred during connectivity checking.
org.eclipse.jgit.transport back to summary

public Class ConnectivityChecker.ConnectivityCheckInfo

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.transport.ConnectivityChecker.ConnectivityCheckInfo

POJO which is used to pass all information which is needed to perform connectivity check.

Field Summary

Modifier and TypeField and Description
private boolean
private List<ReceiveCommand>
private PackParser
private Repository
private RevWalk

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<ReceiveCommand>

Returns:

commands received by the current request.
getCommands
()

Get commands received by the current request

public PackParser

Returns:

the parser used to parse pack.
getParser
()

Get the parser used to parse pack

public Repository

Returns:

database we write the stored objects into.
getRepository
()

Get database we write the stored objects into

public RevWalk

Returns:

the walk to parse commits
getWalk
()

Get the walk to parse commits

public boolean

Returns:

if checker should check objects.
isCheckObjects
()

Whether checker should check objects

public void
setCheckObjects(boolean
set if checker should check referenced objects outside of the received pack are reachable.
checkObjects
)

Set whether objects should be checked

public void
setCommands(List<ReceiveCommand>
commands received by the current request.
commands
)

Set commands received by the current request

public void
setParser(PackParser
the parser to set
parser
)

Set the parser

public void
setRepository(Repository
set database we write the stored objects into.
repository
)

Set database we write the stored objects into

public void
setWalk(RevWalk
the walk to parse commits
walk
)

Set the walk to parse commits

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkObjectsback to summary
private boolean checkObjects
commandsback to summary
private List<ReceiveCommand> commands
parserback to summary
private PackParser parser
repositoryback to summary
private Repository repository
walkback to summary
private RevWalk walk

Constructor Detail

ConnectivityCheckInfoback to summary
public ConnectivityCheckInfo()

Method Detail

getCommandsback to summary
public List<ReceiveCommand> getCommands()

Get commands received by the current request

Returns:List<ReceiveCommand>

commands received by the current request.

getParserback to summary
public PackParser getParser()

Get the parser used to parse pack

Returns:PackParser

the parser used to parse pack.

getRepositoryback to summary
public Repository getRepository()

Get database we write the stored objects into

Returns:Repository

database we write the stored objects into.

getWalkback to summary
public RevWalk getWalk()

Get the walk to parse commits

Returns:RevWalk

the walk to parse commits

isCheckObjectsback to summary
public boolean isCheckObjects()

Whether checker should check objects

Returns:boolean

if checker should check objects.

setCheckObjectsback to summary
public void setCheckObjects(boolean checkObjects)

Set whether objects should be checked

Parameters
checkObjects:boolean

set if checker should check referenced objects outside of the received pack are reachable.

setCommandsback to summary
public void setCommands(List<ReceiveCommand> commands)

Set commands received by the current request

Parameters
commands:List<ReceiveCommand>

commands received by the current request.

setParserback to summary
public void setParser(PackParser parser)

Set the parser

Parameters
parser:PackParser

the parser to set

setRepositoryback to summary
public void setRepository(Repository repository)

Set database we write the stored objects into

Parameters
repository:Repository

set database we write the stored objects into.

setWalkback to summary
public void setWalk(RevWalk walk)

Set the walk to parse commits

Parameters
walk:RevWalk

the walk to parse commits